feat: add Playwright E2E tests for frontend#429
Open
SAY-5 wants to merge 1 commit intoEAPD-DRB:mainfrom
Open
Conversation
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
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
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:
/getCasesAPI, session get/set, nonexistent case handlingInfrastructure:
e2e/playwright.config.js— auto-starts Flask dev server, captures screenshots/traces on failuree2e/package.json— Playwright dependencyNote: 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 chromiumnpx playwright test— all 11 tests should passCloses #426