Skip to content
SprecherEast
Issue 311

enhancement: End-to-end tests of every account and contact flow, as a resident would use them

Back to our plan
Done
enhancementciauthuxpriority: high

Type

enhancement

Problem

The account and contact flows have unit and component tests, but no test that walks each flow the way a resident would. Summary of the owner's requirement (2026-10-24, Claude Code session, text):

Every finished flow should be tested as a real resident would experience it: on a phone, with expired links, with wrong input, and when recovering from errors.

Proposed fix

  • Tool: Playwright end-to-end tests, the standard tool for Next.js and already used for screenshots here. They run against a production build with a fresh SQLite database, Turnstile test keys, and emails captured instead of sent.
  • Flows:
    • sign up → verify → set password → sign in
    • sign in, including a wrong password and a locked account
    • forgot password → reset, including an expired or reused link
    • contact → confirm → delivered, including an expired link and a blank or wrong email
    • delete account, once that's built
  • Viewports: each flow runs at a phone width (390 px) and a desktop width (1280 px), with an axe accessibility check on each step.
  • CI: a CI job runs them. It starts as non-required, and becomes required once it's stable.

Acceptance criteria

  • Not done: Every built flow has a Playwright test covering the happy path, an expired link, incorrect input and recovery.
  • Not done: The tests run in CI on every PR.
  • Not done: No test sends a real email or hits a real Cloudflare key.

Area

ci, auth, ux

Priority

priority: high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab