Repository navigation
ci(e2e): run the office kanban suite nightly against a static web export, and prove its red path - #811
Conversation
…ort, and prove its red path (#807) Nothing in CI ran the root playwright.config.ts: e2e-nightly.yml executed the app-level config only, so the office suites had never run anywhere but a laptop. A second nightly job now does, the way #553 found works: - `expo export --platform web` served by `expo serve` on 8081, not `expo start --web`, which OOMs Metro's 8 GB heap under parallel SSR page loads. Locally the export serves the suite in 1.6 min at one worker. - The job names the spec files with a verified green run instead of running the config unfiltered. Run in full for the first time, the root allow-list is 29/123 red — stale selectors in the auth, webhooks, api-keys, hardening, user-journeys and profile-audit specs (#810). A nightly that is red from day one is the "known-red selection" the config's own comments warn against. - A "Prove the red path" step runs the fixture-precondition block with E2E_BREAK_APPLICATIONS=1, under which the spec answers the employer applications endpoint with an empty list, and passes only if that run fails. That is #553's third acceptance box made repeatable; a route intercept rather than an edge-function revert, because the local edge runtime serves whichever checkout started it. - The Board segment click takes `.first()`: on an empty board the segmented control resolved two "Board" texts. Verified locally against the export with the local stack: green run 22 passed / 0 failed with CI settings; red run fails on exactly the two precondition tests ("The kanban is empty…", "No applications in the "new" column…"). Co-Authored-By: Claude Fable 5.1 <[email protected]>
… app host
The admin and user setup steps built the localStorage key from the
page's hostname and hard-mapped "localhost" to "127", which only holds
when EXPO_PUBLIC_SUPABASE_URL is 127.0.0.1. CI builds the export with
http://localhost:54321, so supabase-js in the app read
`sb-localhost-auth-token`, found nothing, and every dispatched run
bounced to /auth (run 35228884569: 6 failed, 1 passed — the super-admin
step, which already derived the key from the URL).
All three steps now use getStorageKey(), the same first-hostname-label
rule supabase-js applies (SupabaseClient.js: `sb-${hostname.split('.')[0]}-auth-token`).
Verified locally with an export built the way CI builds it (no .env
files, EXPO_PUBLIC_SUPABASE_URL=http://localhost:54321) and the same
URL in the test process: all three setup steps pass first attempt.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
On a real runner, run 35231504914 on this branch: both jobs green. In the new The first dispatch (35228884569) failed with every setup step bouncing to |
Closes #807.
What
A second job in
e2e-nightly.yml,e2e-office, runs the rootplaywright.config.ts— which nothing in CI executed before; the existing job runs the app-level config only.expo export --platform webserved byexpo serveon 8081. Againstexpo start --webthe same suite OOMs Metro's 8 GB heap under parallel SSR loads; the export serves it in 1.6 min at one worker.E2E_BREAK_APPLICATIONS=1, under which the spec answers the employer applications endpoint with an empty list, and passes only if that run fails. test(e2e): the office suite never runs — excluded from testMatch, and its auth setup is outside testDir #553's third acceptance box, made repeatable. A route intercept rather than an edge-function revert, because the local edge runtime serves whichever checkout started it and the preview tooling cannot start a second one on Kong's port..first(); an empty board resolved two "Board" texts.Verified
Locally against the export with the local stack and seeded fixtures, CI settings (
CI=true, one worker):E2E_BREAK_APPLICATIONS=1, preconditions only)On a real runner: workflow dispatched on this branch as run 35228884569; result to be posted below before merge.
Acceptance from #807
PLAYWRIGHT_BASE_URL, runs the root config at one worker, uploadstests/reports/playwright/setupproject first from a fresh checkout (the chromium project depends on it;tests/.auth/is not in the repo)🤖 Generated with Claude Code