Pins the doctor-flow script (type chip, condition chip, text search — three independent routes to one document), the URL deep-link contract (?kind / ?episode / ?year / ?doc), delete with undo, the bulk flows (50-item kind change, per-id partial failure, client-side chunking above 100 ids), keyboard-only navigation over the roving grid, page-wide drop and clipboard-paste intake, the duplicate-upload contract, the admin per-file cap (commit-on-Enter, rejection copy naming the limit), the touch long-press selection on the mobile project, and axe scans over the timeline, the open detail sheet, and bulk mode. The fixture seeds the 60-document corpus straight through Postgres — the upload endpoint's 60/hour bucket cannot carry API seeding across two Playwright projects — with blobs encrypted in the same binary2 layout the server writes, so previews exercise the real decrypt path. Idempotent throughout; mutating tests use disposable namespaces.
e2e/
End-to-end browser tests. Playwright 1.60 drives a production build of the app against a real PostgreSQL, with @axe-core/playwright for accessibility assertions. This is the heaviest test tier; CI runs it on every PR, and locally it is worth running when a change touches a UI flow.
Running
pnpm e2e
The Playwright config (../playwright.config.ts) builds the app (next build) and brings up Postgres before the specs run; setup/global-setup.ts seeds the auth + fixture state. The suite is not part of the fast local gate (typecheck / lint / test) — it surfaces at PR CI, so expect responsive/wizard/nav reworks to flag here first.
Layout
setup/—global-setup.ts(auth + DB seeding),test-helpers.ts(shared login + navigation helpers).utils/— fixtures such asmock-dashboard-snapshot.ts.*.spec.ts— one spec per flow: auth/login/redirect, dashboard, charts, the medication-wizard cadences (medications-wizard-*), insights generation + scroll restoration, doctor report, settings, mobile-viewport consistency, locale switch, accessibility (a11y.spec.ts), and thev1427-*regression set.
Convention
Assert against stable data-* attributes (data-slot, data-display-step, root display attrs), not viewport-dependent visible text. Responsive sm:hidden UI changes break getByText on desktop while the underlying element is still present — anchoring on data attributes keeps the specs stable across breakpoints. See ../CLAUDE.md.