Add Playwright Browser Tests for Core Dashboard Flows
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, playwright, typescript
- Bereich
- ci-cd, testing-qa
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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 truepackage.json: Playwright is not indevDependenciestest/e2e/: directory exists but contains no test files.github/workflows/ci.yml: no browser test step@testing-library/reactandjsdomare 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:e2eruns the full browser suite locally - CI runs the E2E suite on every push/PR (or on a nightly schedule at minimum)
-
README.mdaccurately reflects Playwright as an active testing tool -
npm run typecheck,npm test, andnpm run lintall pass
Before Closing
- All E2E flows listed above have at least one test
- No test relies on hardcoded waits (
page.waitForTimeout); usewaitForSelector,waitForResponse, or Playwright's auto-waiting instead - CI does not add more than 5 minutes to the pipeline on the happy path
- Vorherrschende Sprache
- TypeScript
- Sterne
- 125
- Forks
- 23
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 12
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus devarshishimpi/codra
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
devarshishimpi/codra#178 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
devarshishimpi/codra#176 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
devarshishimpi/codra#186 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
devarshishimpi/codra#185 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
devarshishimpi/codra#184 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in devarshishimpi/codra
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 83/100
gofish-graphics/gofish-graphics#1384 ·
Maintainer antworten meist innerhalb von 1 Tag
-
adapter bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Olanetsoft/agent-lookout#353 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
vicharanashala/vibe#1542 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug chore P2 size:XS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
josephfung/curia#2666 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: batch
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
inabagumi/shinju-date#7294 ·
Maintainer antworten meist innerhalb von 1 Tag