Repository navigation
test(frontend): add Playwright end-to-end coverage - #2
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Playwright end-to-end testing infrastructure for the frontend, including an isolated backend+frontend E2E stack and CI execution, to validate key authentication and user-management flows.
Changes:
- Introduces a
just dev-e2erecipe to boot an isolated stack (disposable auth DB + Vite test mode). - Adds Playwright configuration plus E2E specs covering login/logout and user-management flows (create/delete users, password change, last-admin protections).
- Runs Chromium E2E tests in GitHub Actions and uploads Playwright diagnostics (report + test-results) on failures.
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| justfile | Adds dev-e2e isolated stack recipe used by Playwright webServer. |
| frontend/yarn.lock | Locks Playwright and its transitive dependencies. |
| frontend/playwright.config.ts | Adds Playwright runner configuration (baseURL, webServer, artifacts-on-failure). |
| frontend/package.json | Adds yarn e2e scripts and Playwright test dependency. |
| frontend/e2e/auth.spec.ts | E2E coverage for admin sign-in/sign-out. |
| frontend/e2e/fixtures/authentication.ts | Shared login/logout helpers for E2E specs. |
| frontend/e2e/user-management.spec.ts | E2E coverage for user create/delete, password change, and last-admin restrictions. |
| .gitignore | Ignores Playwright reports/results and auth state directories. |
| .github/workflows/ci.yml | Adds an e2e CI job and includes it in the ci-ok required aggregator. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
yarn e2e— 4 passede2e/andplaywright.config.tsgit diff --checkNotes
The E2E stack uses a disposable authentication database and Vite test mode, so test runs do not modify committed generated frontend bindings.