Skip to content

[P1] platform: Add platform-wide frontend E2E coverage #223

@Cataldir

Description

@Cataldir

Problem inventory

The repo does not yet have a platform-wide browser E2E gate that proves the mature UI and APIM-backed flows work together from the user perspective.

Type: tech debt / regression prevention

Evidence

  • frontend/package.json has dev, build, start, lint, and format scripts, but no e2e/test script.
  • No Playwright configuration was found in frontend.
  • docs/modernization-plan.md still lists integration tests that exercise APIM routes for all apps domains as a remaining action.
  • The user requirement is to guarantee everything is working well end-to-end, not only compile.

Impact assessment

User impact: critical/high. Without browser E2E coverage, old UI regressions, broken links, APIM route mismatches, and unavailable feature flows can pass local lint/build.
Blast radius: cross-service frontend, CI/CD, APIM route contracts, and backend readiness signals.

Acceptance criteria

  • Add Playwright configuration and package scripts under frontend, using pnpm and Node 22.
  • Cover public front door routes: /, /programs, /evidence-trust, /institutions, /sign-in if present.
  • Cover role workspace shell routes for student, professor, supervisor/principal, admin, and alumni, including role/context switching where feasible.
  • Cover core user flows with stable mocked network fixtures or test environment contracts: chat, essays submission/history, questions answering/admin, configuration, upskilling, evaluation, LMS gateway, avatar/settings.
  • Validate all primary navigation links resolve without 404s or unexpected client errors.
  • Include accessibility-oriented assertions for labels, focus, status messages, and keyboard operability on key flows; automated checks should align with WCAG 2.2 AA where feasible.
  • Add CI wiring or a documented command path so the E2E suite can run consistently before merge.
  • Existing backend tests and frontend lint/build remain green.

Agent assignment

Primary specialist: PlatformEngineer
Supporting specialist: TypeScriptDeveloper
UI/accessibility validation: UIDesigner

Dependency notes

Depends on route mapping from the ADR-007 feature issue for complete route inventory. Can begin by adding infrastructure and smoke tests for currently stable routes.

Related backlog

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions