sandcastle: Playwright e2e smoke drive + Caddyfile (plan Task 14, #18) #54

Merged
ben merged 1 commit from agent/issue-18 into main 2026-08-29 14:44:33 +00:00

Implements plan Task 14 for #18 — the Playwright e2e smoke drive, the deploy Caddyfile, and the README Deploy section. (Closing is owned by the close-report gate, not this PR.)

What

  • @coa/e2e workspace package: playwright.config.ts (boots server :8787, stub :3904, site :5173), apply.spec.ts (the plan's two tests), fixtures/logo.svg, tsconfig.json.
  • Caddyfile (root): /api → :8787, serves site/dist + communities/.
  • README Deploy section; pnpm-workspace.yaml adds e2e; Makefile e2e target runs the e2e script; STATUS.md.

Seam-safe by design

The seam runs bare pnpm -r test. Naming the drive script test would drag Playwright (no browsers in CI) into it, so the drive script is e2e and make e2e = pnpm --filter @coa/e2e e2e. pnpm -r test skips e2e and stays green; pnpm -r typecheck still type-checks the spec.

Verified locally

  • make e2e → 2 passed; e2e/test-results/done.png written.
  • pnpm install --frozen-lockfile, pnpm -r typecheck, pnpm -r test → all exit 0.

Follow-up

The protected .sandcastle/ residue (flip E2E_TIER → smoke, re-render prompts/workflows, re-author rehearsal-*) is filed as ready-for-session #53 per the acceptance instruction.

🤖 Generated with Claude Code

Implements plan Task 14 for #18 — the Playwright e2e smoke drive, the deploy Caddyfile, and the README Deploy section. (Closing is owned by the close-report gate, not this PR.) ## What - **`@coa/e2e`** workspace package: `playwright.config.ts` (boots server :8787, stub :3904, site :5173), `apply.spec.ts` (the plan's two tests), `fixtures/logo.svg`, `tsconfig.json`. - **`Caddyfile`** (root): `/api` → :8787, serves `site/dist` + `communities/`. - **README** Deploy section; `pnpm-workspace.yaml` adds `e2e`; `Makefile` `e2e` target runs the `e2e` script; `STATUS.md`. ## Seam-safe by design The seam runs bare `pnpm -r test`. Naming the drive script `test` would drag Playwright (no browsers in CI) into it, so the drive script is `e2e` and `make e2e` = `pnpm --filter @coa/e2e e2e`. `pnpm -r test` skips e2e and stays green; `pnpm -r typecheck` still type-checks the spec. ## Verified locally - `make e2e` → **2 passed**; `e2e/test-results/done.png` written. - `pnpm install --frozen-lockfile`, `pnpm -r typecheck`, `pnpm -r test` → all exit 0. ## Follow-up The protected `.sandcastle/` residue (flip `E2E_TIER` → `smoke`, re-render prompts/workflows, re-author `rehearsal-*`) is filed as `ready-for-session` #53 per the acceptance instruction. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: Playwright e2e smoke drive + Caddyfile (plan Task 14, #18)
All checks were successful
ci / seam (pull_request) Successful in 49s
9e22b89a15
Add the `@coa/e2e` workspace package — the dev-factory smoke drive — plus the
deploy Caddyfile and README Deploy section.

Files:
- e2e/{package.json,tsconfig.json,playwright.config.ts,apply.spec.ts,fixtures/logo.svg}
  — playwright.config boots server :8787, stub :3904, site :5173; apply.spec.ts
  has the plan's two tests (full self-hosted flow → /done?slug=ngati-example with
  6 pass marks; a failing backend → "6 of 6 checks failed" and a blocked Next).
- Caddyfile (root): /api → :8787, serves site/dist + communities/.
- README: Deploy section.
- pnpm-workspace.yaml: add e2e; Makefile: e2e target runs the `e2e` script.
- STATUS.md: header + What exists + milestone log.

Key decision — keep Playwright out of the seam. The seam runs bare `pnpm -r
test`; a `test: playwright test` script would drag Playwright (no browsers in
CI) into it. So the drive script is named `e2e` (Makefile `make e2e` =
`pnpm --filter @coa/e2e e2e`); `pnpm -r test` skips e2e and stays green, while
`pnpm -r typecheck` still type-checks the spec. Both exit 0.

Verified locally: `make e2e` → 2 passed, e2e/test-results/done.png written;
`pnpm install --frozen-lockfile`, `pnpm -r typecheck`, `pnpm -r test` all exit 0.

Protected-path residue filed as ready-for-session #53: flip
.sandcastle/E2E_TIER to smoke + re-render prompts/workflows + rehearsal-*.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ben merged commit f4f2f904c3 into main 2026-08-29 14:44:33 +00:00
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!54
No description provided.