Skip to main content

Playwright setup

Test structure

The suite uses the Page Object Model with role-aware fixtures:
All specs use accessible locators (getByRole, getByLabel, getByText) rather than CSS selectors, and no waitForTimeout calls.

Page object example

Journey coverage

Test data

E2E tests require seeded data: known employees, stores, and categories; test accounts per role; and pre-existing entitlement rule sets. Deterministic CSV/XLSX generators and persona credentials come from the shared test-data module, and the seed runs before the suite.

Debugging

Known runner quirks (single-browser coverage, occasional hangs on server reuse in combined runs) are tracked in Known limitations.