Add Playwright Tests for Core Dashboard Flows
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- playwright, typescript
- 领域
- testing
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 125
- 派生
- 23
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 12
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devarshishimpi/codra 的其他 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
devarshishimpi/codra#178 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
devarshishimpi/codra#176 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 4/5 3-5 天 新手友好度 48/100
devarshishimpi/codra#186 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 4/5 3-5 天 新手友好度 58/100
devarshishimpi/codra#184 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 62/100
devarshishimpi/codra#183 ·
维护者通常 1 天内回复
查看 devarshishimpi/codra 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 83/100
gofish-graphics/gofish-graphics#1384 ·
维护者通常 1 天内回复
-
adapter bug
难度 2/5 1-3 小时 新手友好度 83/100
Olanetsoft/agent-lookout#353 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vicharanashala/vibe#1542 ·
维护者通常 1 天内回复
-
bug chore P2 size:XS
难度 2/5 1-3 小时 新手友好度 77/100
josephfung/curia#2666 ·
维护者通常 1 天内回复
-
area: batch
难度 2/5 1-3 小时 新手友好度 75/100
inabagumi/shinju-date#7294 ·
维护者通常 1 天内回复