Repository navigation
Description
Found wiring the root playwright.config.ts into CI (#807). testMatch in that file is an explicit allow-list of nine spec patterns presented as the vetted "Phase 1 smoke" set. Run in full for the first time — locally, against expo export --platform web + expo serve on 8081, the local stack, seeded fixtures, fresh tests/.auth/, 4 workers, --retries=0 — 29 of 123 tests fail. Nothing in CI had ever executed this config (e2e-nightly.yml runs the app-level config only), so nobody could have known.
Failures per file
| file | failed | what it looks like |
|---|---|---|
tests/e2e/auth/test-a002-auth.spec.ts |
8 | getByRole('heading', { name: /sign in/i }) — the auth page's heading is "Login"; three tests time out clicking a button that is not there |
tests/e2e/office/test-office-webhooks.spec.ts |
7 | list page / create form never found; three tests run to the 1.5 m mark |
tests/e2e/auth/test-a001-root.spec.ts |
6 | expects / to land on /dashboard with a nav bar, with no storage state — the screenshot is a blank page |
tests/e2e/office/test-office-api-keys-analytics.spec.ts |
2 | list page not found; also logs Unable to read cached tokens … packages/supabase/tokens.json |
tests/e2e/auth/test-supabase-hardening-regression.spec.ts |
2 | email input / dashboard content not visible |
tests/e2e/office/test-office-applications-kanban.spec.ts |
2 | green alone (#808); the 4-worker full run drags cards while other specs read the same board |
tests/e2e/user-journeys.spec.ts |
1 | profile completion flow |
tests/e2e/profile/profile-audit-magiclink.spec.ts |
1 | 2 m timeout waiting on Mailpit |
Screenshots for every failure are in test-results/ after a run. Whole run: 394 s at 4 workers, which at CI's workers: 1 would also blow the config's globalTimeout of 10 minutes.
Why this matters
The config's own comments describe the two-step rule (fix, then one verified green run, then add) and warn against shipping a "known-red selection". The current allow-list is exactly that. #807's CI job therefore names the one file with a verified green run rather than running the config, and each of the files above is a separate small task: run it alone against the export, fix the selectors or drop the test, then add it to the job's file list.
Acceptance
- Each file above either passes alone against the export (
pnpm exec playwright test <file> --project=chromiumwithCI=true) or has its dead tests removed with a one-line reason each - The kanban spec is made safe to run alongside other specs (serialise the office project, or give it its own fixtures) so the 4-worker local run is green too
- The
e2e-officejob ine2e-nightly.ymllists every file that is green; when the list equalstestMatch, the step goes back to running the config unfiltered andglobalTimeoutis set to fit a one-worker run
Related: #807, #553, #592 (profile specs in the same corrected-but-unrun state).
Activity
ci(e2e): run the office kanban suite nightly against a static web exp…