Overview
The E2E standards: end-to-end tests.
- E2E Assert Before Interacting - assert presence before interacting
- E2E Mock Contract - mock scenario constants shared through one const file
- E2E Runs On The Development Build - suites run on the development build, never a production build
- E2E Test Conventions - one spec per feature, use-case titles, @use-case tags
- E2E Tests Must Demonstrate Behavior - check stills of the change, cover the opposite cases
- One Check For Many Canvas Clicks - many canvas clicks get one visibility check, then go through page.mouse
- Per-Feature Overview Test - every spec ends with a one-take overview test
- Real Input For Frame Races - frame races need real mouse input, not dispatched events
- Substring Locator Collisions - new UI text can collide with substring locators
- Use The E2E Pipeline For Browser Probing - probe live DOM through a Playwright spec, not ad-hoc scripts