setup-e2e-testing
Installation
SKILL.md
E2E Testing
Conventions
e2e/*.spec.ts-- all e2e tests use.spec.ts- Name by feature:
login.spec.ts,create-topic.spec.ts - Selectors:
getByRole>getByLabel>getByText>getByTestId> CSS - Test IDs:
{feature}-{element},{feature}-{element}-{index},{feature}-{state}
Edit-time Hooks
- route sibling test: when a route or
*.page.tsxchanges, run sibling*.browser.test.*or*.integration.test.*; block if it fails. - structural refactor test nudge: new
*.page.tsxor split component file needs accompanying.test,.integration.test, or.browser.test.