#36 e2e: drive reaches /c/<slug> and reads the outbox email #65

Merged
matou-build-agent merged 1 commit from agent/issue-36 into main 2026-08-30 17:29:05 +00:00

Phase-2 plan Task 9. The Playwright smoke drive now covers submit → community page → email end to end.

  • site/vite.config.ts proxies /c to the server as well as /api.
  • e2e/playwright.config.ts mints a fresh temp run dir per run and passes COA_COMMUNITIES_DIR/COA_MAIL_OUTBOX with COA_PUBLIC_URL=http://localhost:5173, COA_GIT_PUSH=0; writes the path to git-ignored e2e/.run-dir.
  • e2e/apply.spec.ts extends the Done assertion: page link href, GET /c/ngati-example (heading + "build pending"), exactly one outbox file whose to is the contact and text carries the page URL.

No real network, no git push, nothing under the repo communities/. pnpm -r test + typecheck green; server-side flow and Vite /c proxy verified by hand. The Chromium drive runs on the CI seam (this sandbox lacks the browser system libs).

Refs #36

Phase-2 plan Task 9. The Playwright smoke drive now covers submit → community page → email end to end. - `site/vite.config.ts` proxies `/c` to the server as well as `/api`. - `e2e/playwright.config.ts` mints a fresh temp run dir per run and passes `COA_COMMUNITIES_DIR`/`COA_MAIL_OUTBOX` with `COA_PUBLIC_URL=http://localhost:5173`, `COA_GIT_PUSH=0`; writes the path to git-ignored `e2e/.run-dir`. - `e2e/apply.spec.ts` extends the Done assertion: page link `href`, `GET /c/ngati-example` (heading + "build pending"), exactly one outbox file whose `to` is the contact and `text` carries the page URL. No real network, no git push, nothing under the repo `communities/`. `pnpm -r test` + typecheck green; server-side flow and Vite `/c` proxy verified by hand. The Chromium drive runs on the CI seam (this sandbox lacks the browser system libs). Refs #36
sandcastle: e2e drive reaches /c/<slug> and reads the outbox email (#36)
All checks were successful
ci / seam (pull_request) Successful in 1m0s
71a50cbe0e
Phase-2 plan Task 9. The Playwright smoke drive now covers the whole
submit → page → email flow end to end.

- site/vite.config.ts: proxy `/c` to the server as well as `/api`, so the
  drive can `GET http://localhost:5173/c/<slug>` through Vite.
- e2e/playwright.config.ts: mint a fresh temp run dir per run (mkdtempSync)
  and pass it to the server as COA_COMMUNITIES_DIR/COA_MAIL_OUTBOX with
  COA_PUBLIC_URL=http://localhost:5173 and COA_GIT_PUSH=0; write the path to
  git-ignored e2e/.run-dir for the spec. No real network, no push, nothing
  under the repo's communities/.
- e2e/apply.spec.ts: after the Done assertion, check the page link's href,
  GET /c/ngati-example (heading + "build pending"), and exactly one outbox
  file whose `to` is the contact and `text` carries the page URL.
- .gitignore: e2e/.run-dir. STATUS.md: header + log for #36.

Verified server-side + Vite proxy by hand (page renders, outbox written,
repo communities/ untouched); pnpm -r test and typecheck green. The Chromium
drive itself runs on the CI seam (this sandbox lacks the browser's system
libs); #18 already established `make e2e` green there.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!65
No description provided.