docs/GAP_ANALYSIS_BEYOND_TASKS.md §8 — Playwright only smoke; no challenge / game over / meta / contracts path.
Extend e2e/ with stable tests (prefer data-testid or deterministic hooks):
- Menu → Play → die — assert game over text or replay control appears.
- Options — change music volume; reload or revisit and assert persisted (read
localStoragekey for save). - Achievements — open scene from options; assert list renders.
- Challenge keys — if feasible without flakiness: trigger challenge and press
Digit1(may need fixed seed or cheat flag—if too flaky, document skip and add unit test instead).
-
npm run test:e2egreen in CI. - Each test file has comment on flakiness mitigations (timeouts, selectors).
Run after AGENT-20 batch or on integration branch; coordinate with AGENT-04/19 if game-over DOM changes.