Add Playwright Browser Tests for Core Dashboard Flows

Aperta
#174 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, playwright, typescript
Ambito
ci-cd, testing-qa

Direzione di ricerca

Read package.json, README.md, and .github/workflows/ci.yml to understand the current scripts, claims, and CI setup; inspect the dashboard routes and existing test/e2e directory. Start by mapping the listed user journeys to their route components and available test data. Done means the required flows pass locally and in CI, the suite runs with npm run test:e2e, and the README accurately describes the testing setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement good first issue

Summary

README.md claims Codra uses "Playwright browser tests", but Playwright is not installed, there is no playwright.config.ts, and there are zero browser-based tests anywhere in the repository. Dashboard pages have no automated regression coverage, so UI breakage is only caught manually.

This parent issue tracks adding a real Playwright E2E suite under test/e2e that covers the core dashboard user journeys. See sub-issues for each implementation step.

Work Breakdown

  • Sub-issue: Install and configure Playwright with base config and test scripts
  • Sub-issue: Implement core dashboard flow tests
  • Sub-issue: Run E2E suite in CI and fix the README claim

Current State

  • README.md (line 106): lists "Playwright browser tests" as part of the quality stack, but it is not true
  • package.json: Playwright is not in devDependencies
  • test/e2e/: directory exists but contains no test files
  • .github/workflows/ci.yml: no browser test step
  • @testing-library/react and jsdom are installed but no React component tests exist for dashboard pages

Suggested Test Flows

Flow Description
Landing & Auth Visit /, expect login page; simulate GitHub OAuth callback; verify redirect to /dashboard
Dashboard Overview Verify KPI cards render, time range selector works, recent reviews table loads
Jobs List Navigate to /jobs; search by PR title; filter by status; paginate
Job Detail Open a seeded job; verify stepper, findings list (by file / by severity), and diff viewer tab render
Repository Settings Navigate to /repos; toggle a repo enabled/paused; open model settings modal
Stats Page Navigate to /stats; verify charts render without errors
Theme Toggle Toggle between dark/light mode; verify preference persists on reload

Done When

  • Playwright is installed and configured
  • At least the Landing/Auth, Jobs List, Job Detail, and Repository Settings flows have passing tests
  • npm run test:e2e runs the full browser suite locally
  • CI runs the E2E suite on every push/PR (or on a nightly schedule at minimum)
  • README.md accurately reflects Playwright as an active testing tool
  • npm run typecheck, npm test, and npm run lint all pass

Before Closing

  • All E2E flows listed above have at least one test
  • No test relies on hardcoded waits (page.waitForTimeout); use waitForSelector, waitForResponse, or Playwright's auto-waiting instead
  • CI does not add more than 5 minutes to the pipeline on the happy path
Lingua principale
TypeScript
Stelle
125
Fork
23
Merge medio
2g 13h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devarshishimpi/codra

Tutte le issue di devarshishimpi/codra

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.