sandcastle: Playwright e2e smoke drive + Caddyfile (plan Task 14, #18) #54
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/issue-18"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/e2eworkspace 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, servessite/dist+communities/.pnpm-workspace.yamladdse2e;Makefilee2etarget runs thee2escript;STATUS.md.Seam-safe by design
The seam runs bare
pnpm -r test. Naming the drive scripttestwould drag Playwright (no browsers in CI) into it, so the drive script ise2eandmake e2e=pnpm --filter @coa/e2e e2e.pnpm -r testskips e2e and stays green;pnpm -r typecheckstill type-checks the spec.Verified locally
make e2e→ 2 passed;e2e/test-results/done.pngwritten.pnpm install --frozen-lockfile,pnpm -r typecheck,pnpm -r test→ all exit 0.Follow-up
The protected
.sandcastle/residue (flipE2E_TIER→smoke, re-render prompts/workflows, re-authorrehearsal-*) is filed asready-for-session#53 per the acceptance instruction.🤖 Generated with Claude Code
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>