Files
Amy b323a28111 test: strengthen E2E coverage and fixtures (#6150)
* test: strengthen e2e coverage and fixtures

* test: allow artifact route when starting conversation

* test: keep e2e count assertions stable

Use the shared stable-count helper for no-request and duplicate-event windows so delayed async events cannot escape the assertions.

Generated-By: looper 0.11.0 (runner=fixer, agent=codex)

* fix: add e2e assertion import extension

Use the explicit runtime extension required by the e2e NodeNext typecheck.\n\nGenerated-By: looper 0.11.0 (runner=fixer, agent=codex)

* fix: preserve design system provenance and settle e2e assertions

Keep disabled design systems available to project recovery and provenance while filtering only runtime injection. Make hover and cancellation checks observe their full settled windows.

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* test(e2e): preserve unique restoration run IDs

Pass the restoration fixture's run ID prefix through routeSuccessfulRuns so each mocked request receives a distinct run identity.

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* test(e2e): stabilize agent and async count fixtures

Route restoration agent requests through the shared JSON and SSE fixture, capture autosave baselines after a quiet period, and observe onboarding cancellation for a bounded stable window.\n\nGenerated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix: honor disabled design systems in daemon runs

Filter disabled persisted project selections at prompt and analytics boundaries, and keep restoration run fixtures unique.\n\nGenerated-By: looper 0.11.2 (runner=fixer, agent=codex)

* test(e2e): shorten cancellation duplicate check

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)
2026-07-30 02:27:41 +00:00

2.3 KiB

项目管理模块

覆盖范围

  • 首页项目卡片
  • 首页搜索与视图切换
  • 创建设计时的 design system 选择
  • 项目重命名持久化
  • 设计文件删除与首页删除流程
  • 首页入口的宠物自定义

对应测试文件

  • e2e/ui/project-management-flows.test.ts

已自动化

ID 场景 来源
PM-001 Prototype、live artifact、deck、image 标签切换正确,且草稿内容会保留 project-management-flows.test.ts
PM-002 多选 design system 时,会正确保存主系统和 inspiration metadata project-management-flows.test.ts
PM-003 单选 design system 时,搜索后可以切换目标系统 project-management-flows.test.ts
PM-004 项目标题重命名后刷新仍保留,空白标题不会覆盖原值 project-management-flows.test.ts
PM-005 取消删除 design file 时,文件行和已打开标签都会保留 project-management-flows.test.ts
PM-006 首页 design 卡片删除同时覆盖取消和确认两种路径 project-management-flows.test.ts
PM-007 首页 designs 视图支持 grid/kanban 切换,并在刷新后保持 project-management-flows.test.ts
PM-008 首页搜索会过滤项目卡片,并支持从无结果态恢复 project-management-flows.test.ts
PM-009 Change pet 可以打开宠物设置,并保存自定义 companion project-management-flows.test.ts
PM-010 项目绑定的 Design System 被设置禁用后,下一次 runtime run 不再携带该 designSystemId project-management-flows.test.ts

自动化候选

ID 场景 原因
PM-C02 更多 design system 筛选、排序或分类行为 价值明确,但要等产品侧交互稳定后再固化断言

手工保留

ID 场景 原因
PM-M01 宠物形象、表情、交互是否“自然/有趣” 强主观体验项,不适合自动化
PM-M02 首页卡片视觉密度、布局观感是否舒适 更适合人工视觉验收

说明

  • 首页/项目管理相关场景集中在一个 Playwright 文件里,是因为它们共用相似的项目初始化生命周期。
  • design system 相关覆盖同时验证了 metadata 持久化和 picker 搜索行为。