Add Playwright Tests for Core Dashboard Flows
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- playwright, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Start by reading the sibling issue for Playwright setup and the dashboard routes and components for /, /dashboard, /jobs, /repos, and /stats; the payload does not name their files. Then add E2E coverage for the listed flows, using seeded data and a deterministic OAuth stub where needed. Done means all seven flows pass repeatedly, no test uses hardcoded waits, and typecheck, test, and lint pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Implement Playwright E2E tests for the core dashboard user journeys.
Background
With Playwright configured (see sibling sub-issue), the dashboard flows need actual test coverage. This sub-issue implements the tests; CI integration is a sibling sub-issue.
This sub-issue is part of the parent issue: Playwright E2E test suite for core dashboard flows.
Flows to Cover
| 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 |
Implementation Guidance
- Use Playwright's built-in locators (
getByRole,getByTestId) over CSS selectors for resilience - Add
data-testidattributes to key dashboard components where needed - Never rely on hardcoded waits (
page.waitForTimeout); usewaitForSelector,waitForResponse, or Playwright's auto-waiting - Auth flow may need a mocked or stubbed GitHub OAuth callback for deterministic tests
Done When
- At least the Landing/Auth, Dashboard Overview, Jobs List, Job Detail, and Repository Settings flows have passing tests
- Stats page and Theme toggle flows have passing tests
- No test uses hardcoded waits
- Tests are deterministic across repeated local runs
-
npm run typecheck,npm test, andnpm run lintall pass
- Ngôn ngữ chính
- TypeScript
- Star
- 125
- Fork
- 23
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của devarshishimpi/codra
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
devarshishimpi/codra#178 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
devarshishimpi/codra#176 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
devarshishimpi/codra#186 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
devarshishimpi/codra#184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
devarshishimpi/codra#183 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của devarshishimpi/codra
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 83/100
gofish-graphics/gofish-graphics#1384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
adapter bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Olanetsoft/agent-lookout#353 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
vicharanashala/vibe#1542 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug chore P2 size:XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
josephfung/curia#2666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: batch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
inabagumi/shinju-date#7294 ·
Maintainer thường phản hồi trong vòng 1 ngày