Skip to content

closes #167 Add end-to-end tests with Playwright covering critical user flows#240

Open
Joeltabe wants to merge 2 commits intoCalebux:mainfrom
Joeltabe:main
Open

closes #167 Add end-to-end tests with Playwright covering critical user flows#240
Joeltabe wants to merge 2 commits intoCalebux:mainfrom
Joeltabe:main

Conversation

@Joeltabe
Copy link
Copy Markdown

@Joeltabe Joeltabe commented Mar 27, 2026

Closes #167


Motivation

  • The app lacked end-to-end (E2E) coverage for the full user journey (signup → add subscription → receive/resolve reminder → mark renewed), leaving critical flows untested end-to-end and increasing the risk of silent regressions.

Description

  • Add Playwright config at client/playwright.config.ts with e2e test directory, CI retries, trace/screenshot diagnostics, and desktop + mobile (Pixel 5) projects.
  • Add stable E2E helpers in client/e2e/helpers.ts for generating unique test users, API signup/login, bootstrapping a mocked authenticated UI, and navigation helpers.
  • Add E2E specs client/e2e/auth.spec.ts (signup & login) and client/e2e/subscription-flows.spec.ts (add, edit, delete subscription; notifications visibility; settings update).
  • Add npm scripts (e2e, e2e:headed, e2e:report) to client/package.json and a GitHub Actions workflow .github/workflows/e2e.yml to run Playwright against a preview deployment URL provided via E2E_BASE_URL, install browsers, and upload reports/artifacts on success/failure.

Testing

  • Ran npm run lint in client and it failed due to ESLint v9 requiring a flat eslint.config.* file, so linting did not complete.
  • Attempted npm run e2e -- --list locally to enumerate tests but Playwright could not be installed here because the environment returned 403 Forbidden when fetching Playwright packages, so the E2E suite could not be executed locally.
  • CI expectation: the added GitHub Actions workflow will install Playwright and run the tests against the preview deployment (via E2E_BASE_URL) and will upload HTML reports and failure artifacts for diagnostics when run in GitHub Actions.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Joeltabe Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add end-to-end tests with Playwright covering critical user flows

1 participant