e2e-testing
Installation
SKILL.md
E2E Testing
Run /read-the-damn-docs before choosing current Playwright, Testcontainers, axe-core, or
browser APIs. Setup belongs in SETUP.md.
Conventions
- Put E2E tests in
e2e/*.spec.ts; name files by feature. - Select with
getByRole>getByLabel>getByText>getByTestId> CSS. - Test IDs use
{feature}-{element}, optional index, or state. - The route sibling hook runs nearby browser/integration tests after route edits.
- The structural refactor hook requires a test for new pages or extracted components.
Accessibility and browsers
Run axe on every page, but automated accessibility covers only a subset. An axe-only pass does not prove keyboard order, focus, names, zoom, or assistive-technology behavior.