e2e: drive reaches /c/<slug> and reads the outbox email (phase-2 plan Task 9) #36

Closed
opened 2026-08-28 21:00:29 +00:00 by ben · 4 comments
Owner

Plan

docs/superpowers/plans/2026-08-28-coa-phase-2.md Task 9. Spec §7 (site e2e: page exists, email captured).

Deliverable

site/vite.config.ts proxies /c to the server as well as /api. e2e/playwright.config.ts gives the server a fresh temp run dir per run: COA_COMMUNITIES_DIR, COA_MAIL_OUTBOX, COA_PUBLIC_URL=http://localhost:5173, COA_GIT_PUSH=0; writes the dir to e2e/.run-dir (git-ignored). e2e/apply.spec.ts extended after the Done assertion: the Done link's href; GET /c/ngati-example shows the heading and "build pending"; exactly one outbox file, to is the contact and text contains the page URL.

Acceptance

  • make e2e green headless; pnpm -r typecheck green.
  • No real network, no git push, nothing written under the repo's communities/.

depends_on

  • e2e: Playwright smoke drive (#18)
  • server: /api/submit phase-2 pipeline (Task 6)
  • site: Done page (Task 8)

out_of_scope

E2E_TIER changes (#18 already flips it).

Phase gate

No build dispatch, no coa-shared provisioning, no status transitions beyond page-ready (phase 3). Never delete or rewrite anything under communities/ (ADR 0002/0003).

## Plan `docs/superpowers/plans/2026-08-28-coa-phase-2.md` **Task 9**. Spec §7 (site e2e: page exists, email captured). ## Deliverable `site/vite.config.ts` proxies `/c` to the server as well as `/api`. `e2e/playwright.config.ts` gives the server a fresh temp run dir per run: `COA_COMMUNITIES_DIR`, `COA_MAIL_OUTBOX`, `COA_PUBLIC_URL=http://localhost:5173`, `COA_GIT_PUSH=0`; writes the dir to `e2e/.run-dir` (git-ignored). `e2e/apply.spec.ts` extended after the Done assertion: the Done link's `href`; `GET /c/ngati-example` shows the heading and "build pending"; exactly one outbox file, `to` is the contact and `text` contains the page URL. ## Acceptance - `make e2e` green headless; `pnpm -r typecheck` green. - No real network, no git push, nothing written under the repo's `communities/`. ## depends_on - e2e: Playwright smoke drive (#18) - server: /api/submit phase-2 pipeline (Task 6) - site: Done page (Task 8) ## out_of_scope E2E_TIER changes (#18 already flips it). ## Phase gate No build dispatch, no `coa-shared` provisioning, no status transitions beyond `page-ready` (phase 3). Never delete or rewrite anything under `communities/` (ADR 0002/0003).
Author
Owner

On hold (needs-info): depends functionally on #35 (the drive asserts the Done page links /c/<slug>), which is held for Ben's in-flight site redesign. Re-add ready-for-agent when #35 lands.

On hold (needs-info): depends functionally on #35 (the drive asserts the Done page links `/c/<slug>`), which is held for Ben's in-flight site redesign. Re-add `ready-for-agent` when #35 lands.
Author
Owner

Unblocked along with #35 (which it depends on). Back to ready-for-agent.

Unblocked along with #35 (which it depends on). Back to `ready-for-agent`.

swarm-claim host=matou-dev-server-01 run=942
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=942 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #36 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 36,
  "status": "success",
  "commits": [
    "3047998f0a588e313841b9ab2dd44fb7814c1371"
  ],
  "changed_files": [
    ".gitignore",
    "STATUS.md",
    "e2e/apply.spec.ts",
    "e2e/playwright.config.ts",
    "site/vite.config.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "site/vite.config.ts proxies /c to the server as well as /api": "site/vite.config.ts: proxy adds '/c': 'http://localhost:8787'; verified curl http://localhost:5173/c/ngati-example returned the page through Vite",
    "e2e/playwright.config.ts gives the server a fresh temp run dir per run (COA_COMMUNITIES_DIR, COA_MAIL_OUTBOX, COA_PUBLIC_URL=http://localhost:5173, COA_GIT_PUSH=0); writes the dir to e2e/.run-dir": "e2e/playwright.config.ts: mkdtempSync run dir, env block on the server webServer, writeFileSync to e2e/.run-dir",
    "e2e/apply.spec.ts extended after the Done assertion: Done link href; GET /c/ngati-example shows heading and 'build pending'; exactly one outbox file, to is the contact and text contains the page URL": "e2e/apply.spec.ts: appended href assertion on the /c/ngati-example link, page.goto('/c/ngati-example') heading + build-pending checks, and the single-outbox to/text assertions",
    "make e2e green headless": "Chromium drive runs on the CI seam (ci/seam success on the PR); server-side pipeline + Vite /c proxy verified by hand locally (page renders heading + 'build pending', one outbox file with to=kaitiaki@example.iwi.nz and text carrying http://localhost:5173/c/ngati-example). Sandbox lacks the browser system libs (libnspr4), so the local drive could not launch Chromium",
    "pnpm -r typecheck green": "CI=true pnpm -r typecheck → all 6 projects Done",
    "No real network, no git push, nothing written under the repo's communities/": "COA_GIT_PUSH=0 + noopPublisher; run dir under os.tmpdir(); git status --porcelain communities/ empty after a manual submit"
  },
  "summary": "The e2e smoke drive now reaches /c/<slug> (proxied through Vite) and reads the page-ready email from a per-run temp outbox, all without real network, push, or writes under the repo's communities/.",
  "reason": "Task 9 delivered: Vite /c proxy, per-run temp dirs written to e2e/.run-dir, and the extended apply.spec assertions; typecheck + test green, seam green, server-side flow verified by hand.",
  "blockers": []
}
**close-report** for #36 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 36, "status": "success", "commits": [ "3047998f0a588e313841b9ab2dd44fb7814c1371" ], "changed_files": [ ".gitignore", "STATUS.md", "e2e/apply.spec.ts", "e2e/playwright.config.ts", "site/vite.config.ts" ], "tests": [ { "command": "CI=true pnpm -r typecheck", "exit_code": 0 }, { "command": "CI=true pnpm -r test", "exit_code": 0 } ], "criteria": { "site/vite.config.ts proxies /c to the server as well as /api": "site/vite.config.ts: proxy adds '/c': 'http://localhost:8787'; verified curl http://localhost:5173/c/ngati-example returned the page through Vite", "e2e/playwright.config.ts gives the server a fresh temp run dir per run (COA_COMMUNITIES_DIR, COA_MAIL_OUTBOX, COA_PUBLIC_URL=http://localhost:5173, COA_GIT_PUSH=0); writes the dir to e2e/.run-dir": "e2e/playwright.config.ts: mkdtempSync run dir, env block on the server webServer, writeFileSync to e2e/.run-dir", "e2e/apply.spec.ts extended after the Done assertion: Done link href; GET /c/ngati-example shows heading and 'build pending'; exactly one outbox file, to is the contact and text contains the page URL": "e2e/apply.spec.ts: appended href assertion on the /c/ngati-example link, page.goto('/c/ngati-example') heading + build-pending checks, and the single-outbox to/text assertions", "make e2e green headless": "Chromium drive runs on the CI seam (ci/seam success on the PR); server-side pipeline + Vite /c proxy verified by hand locally (page renders heading + 'build pending', one outbox file with to=kaitiaki@example.iwi.nz and text carrying http://localhost:5173/c/ngati-example). Sandbox lacks the browser system libs (libnspr4), so the local drive could not launch Chromium", "pnpm -r typecheck green": "CI=true pnpm -r typecheck → all 6 projects Done", "No real network, no git push, nothing written under the repo's communities/": "COA_GIT_PUSH=0 + noopPublisher; run dir under os.tmpdir(); git status --porcelain communities/ empty after a manual submit" }, "summary": "The e2e smoke drive now reaches /c/<slug> (proxied through Vite) and reads the page-ready email from a per-run temp outbox, all without real network, push, or writes under the repo's communities/.", "reason": "Task 9 delivered: Vite /c proxy, per-run temp dirs written to e2e/.run-dir, and the extended apply.spec assertions; typecheck + test green, seam green, server-side flow verified by hand.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/coa#36
No description provided.