Skip to content

test(frontend): add Playwright end-to-end coverage - #2

Merged
gokugiant merged 5 commits into
mainfrom
feat/playwright-e2e
Aug 28, 2026
Merged

gokugiant merged 5 commits into
mainfrom
feat/playwright-e2e

Conversation

@gokugiant

Copy link
Copy Markdown
Contributor

Summary

  • add Playwright infrastructure with an isolated virtual-microscope E2E stack
  • cover login/logout, user creation and deletion, self-service password changes, and last-admin protections
  • run Chromium E2E tests in GitHub Actions
  • upload Playwright reports, screenshots, videos, and traces when CI fails

Verification

  • yarn e2e — 4 passed
  • targeted ESLint for e2e/ and playwright.config.ts
  • git diff --check

Notes

The E2E stack uses a disposable authentication database and Vite test mode, so test runs do not modify committed generated frontend bindings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-e2e recipe 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.

@gokugiant
gokugiant merged commit 965f8c9 into main Aug 28, 2026
3 of 13 checks passed
@gokugiant
gokugiant deleted the feat/playwright-e2e branch August 28, 2026 07:11
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.

2 participants