Skip to content

feat: add Playwright E2E tests for frontend#429

Open
SAY-5 wants to merge 1 commit intoEAPD-DRB:mainfrom
SAY-5:feat/playwright-e2e-tests
Open

feat: add Playwright E2E tests for frontend#429
SAY-5 wants to merge 1 commit intoEAPD-DRB:mainfrom
SAY-5:feat/playwright-e2e-tests

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented Apr 11, 2026

Summary

Adds Playwright end-to-end testing infrastructure for the Flask web frontend, addressing the lack of automated frontend testing (#426).

4 test suites with 11 tests:

  • app-load: homepage loads, correct title, no JS errors
  • case-management: /getCases API, session get/set, nonexistent case handling
  • navigation: frontend serving, 404 routes, static assets
  • diagnostics: path traversal blocking, null byte rejection, method validation, CORS

Infrastructure:

  • e2e/playwright.config.js — auto-starts Flask dev server, captures screenshots/traces on failure
  • e2e/package.json — Playwright dependency

Note: CI workflow file (.github/workflows/e2e.yml) should be added by a maintainer with workflow-scoped token permissions.

Test plan

  • cd e2e && npm install && npx playwright install chromium
  • npx playwright test — all 11 tests should pass
  • Tests auto-start Flask server on port 5002

Closes #426

Adds end-to-end testing infrastructure for the Flask web frontend:

- e2e/tests/app-load.spec.js: homepage load, title, JS error checks
- e2e/tests/case-management.spec.js: case API endpoints, session mgmt
- e2e/tests/navigation.spec.js: routing, static assets, 404 handling
- e2e/tests/diagnostics.spec.js: path traversal blocking, CORS, method checks
- e2e/playwright.config.js: auto-starts Flask server for tests
- e2e/package.json: Playwright dependency

Closes EAPD-DRB#426
@github-actions github-actions bot added the needs-intake-fix PR intake structure needs maintainer follow-up label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-intake-fix PR intake structure needs maintainer follow-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Expand CI/CD pipeline with Playwright End-to-End frontend tests

1 participant