Repository navigation
Closed
Labels
Milestone
Description
Follow-up to #553. The office kanban suite now runs and passes locally (23/23), but nothing in CI executes the root playwright.config.ts: .github/workflows/e2e-nightly.yml runs cd apps/scaffald && pnpm test:e2e, which is apps/scaffald/tests/e2e/playwright.config.ts (auth + navigation smoke). The office suites under tests/e2e/office/ and the auth setup project under tests/infrastructure/playwright/setup/ are only ever run by hand.
Two things learned making it pass locally
- Do not run it against
expo start --web. Three parallel setup workers doing SSR page loads OOM'd Metro's 8 GB heap in ~9 minutes (ERR_ABORTED→ERR_EMPTY_RESPONSE→ERR_CONNECTION_REFUSEDonpage.goto).expo export --platform web+expo serve --port 8081served the same run in 31 s with no failures, and is what a nightly should build once and reuse. - The suite mutates the seed. The drag tests move applications between stages and one confirms a rejection, so the "new" column drains across repeated runs until the fixture-precondition test goes red. Local counts after one green run: new 4 → the next run starts from there. CI gets a fresh
pnpm supa starteach time; locally, reseed (pnpm supa db reset) or accept the drift.
Acceptance
- A nightly job (or a second job in
e2e-nightly.yml) builds the web export, serves it on 8081, setsPLAYWRIGHT_BASE_URL, and runspnpm exec playwright testfrom the repo root withworkers: 1, uploadingtests/reports/playwright/ - It runs the
setupproject first from a fresh checkout and producestests/.auth/*.json(this is test(e2e): the office suite never runs — excluded from testMatch, and its auth setup is outside testDir #553's second acceptance box, currently only proven locally) - The kanban suite is red when the employer applications endpoint is broken (test(e2e): the office suite never runs — excluded from testMatch, and its auth setup is outside testDir #553's third box: revert
packages/supabase/functions/api/.../employer/applicationson a branch and watch the fixture-precondition test fail) - The remaining office specs (
test-office-jobs*,test-office-organizations,test-office-users,test-office-oauth-apps) are added totestMatchone at a time, each after a green run, per the two-step rule already written intoplaywright.config.ts
Related: #553, #592 (the profile specs are in the same "corrected but not executed" state).
Activity
ci(e2e): run the office kanban suite nightly against a static web exp…