Skip to main content

creates full product with category options and quick config

← Product E2E Tests (hub)

Implementation

Spece2e/tests/product/product-create-config.spec.ts
Testcreates full product with category options and quick config

Automation (Playwright)

The scenario lives in a test.describe.serial block so it does not fight parallel workers on a shared baseline database. Locator waits use a 20s cap per step so a stuck UI fails fast instead of blocking tens of seconds. Category title uses pressSequentially on upp-input so the Angular category form is dirty and the main Accept button enables. The single option row uses upp-kb-input via pressSequentially on the inner .form-control field. After that option exists, the test applies the product panel once more so the shortcut editor sees the enabled option row. After the shortcut panel opens, the test waits briefly before typing the shortcut name so a deferred markAsPristine pass in the shortcut form does not wipe dirty state and keep Accept disabled. For MULTIPLE categories the shortcut editor shows a checkbox per option: the test clicks it with force: true (no row scroll, stable in ion-content). The main Accept is only clicked after toBeEnabled; the click uses force: true solely to get past .floating-buttons overlays that otherwise intercept the hit, not to bypass a disabled control. After apply, the preselect row is matched by normalized [data-id="productedit-set-<name>-direct"] when present, or by upp-shortcut-view ion-item text as a fallback.

Flow