Open
Description
Description
Set up a base for frontend E2E testing using Playwright, following the structure and best practices from the FastAPI Full Stack Template frontend. This will enable robust automated browser testing for user flows and critical features.
Current Behavior
- No Playwright E2E test setup exists in the frontend.
- User flows and UI features are not automatically tested in a browser environment.
Expected Behavior
- Add Playwright as a dev dependency in the frontend project (see
package.json
in the reference project). - Create a
tests
directory in the frontend for Playwright test files. - Add a basic Playwright config file (e.g.,
playwright.config.ts
) with sensible defaults (test directory, base URL, etc.). - Add at least one example E2E test (e.g., homepage loads, login flow, or navigation).
- Document how to run Playwright tests locally and in CI (reference the README).
- Ensure the setup is compatible with local development and Docker-based workflows.
References