Skip to content

Create Base for Frontend End-to-End (E2E) Tests Using Playwright #57

Open
@0010aor

Description

@0010aor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendonly frontend issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions