Skip to content

Sprint 2 batch 7: Playwright e2e smoke for auth UI + 404 page#127

Merged
keysersoft merged 2 commits into
mainfrom
keysersoft/playwright-smoke
May 3, 2026
Merged

Sprint 2 batch 7: Playwright e2e smoke for auth UI + 404 page#127
keysersoft merged 2 commits into
mainfrom
keysersoft/playwright-smoke

Conversation

@keysersoft
Copy link
Copy Markdown
Contributor

Summary

Adds a minimal Playwright suite that boots the frontend on `next dev` and runs three checks:

  1. login page exposes the email/password inputs we just rewired with proper `htmlFor` — clicking the visible label focuses the input, proving the pairing works for screen readers and password managers.
  2. forgot-password has the same pairing.
  3. an unknown route under `/login/*` returns HTTP 404 + the branded `not-found.tsx` (heading + dashboard link).

`webServer` uses `next dev` because `output: 'standalone'` makes `next start` a no-op and the standalone build embeds an absolute path that differs between local and CI.

`.github/workflows/playwright.yml` runs on push and pull_request, installs Chromium with deps, runs the suite, and uploads the report on failure.

Local: 3/3 passed.

Test plan

  • `npm run test:e2e` from `packages/frontend` — 3/3 PASS

keysersoft added 2 commits May 3, 2026 13:54
Spins up next dev on :3100 (output: standalone makes next start a no-op,
and the standalone build embeds an absolute path that differs between
local and CI), then runs three checks:

  1. login page exposes the email/password inputs we just rewired with
     proper htmlFor — clicking the visible label focuses the input.
  2. forgot-password has the same label/input pairing.
  3. an unknown route under /login/* yields HTTP 404 + the branded
     not-found.tsx (heading + dashboard link).

The playwright.yml workflow runs on push/PR and uploads the report on
failure. Local: 3/3 passed.
@keysersoft keysersoft force-pushed the keysersoft/playwright-smoke branch from f9d6f72 to 822af41 Compare May 3, 2026 11:54
@keysersoft keysersoft merged commit 3dd00f2 into main May 3, 2026
9 checks passed
@keysersoft keysersoft deleted the keysersoft/playwright-smoke branch May 12, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant