fix(e2e): 更新生成流程E2E测试适配7步新流程 #663
Reference in New Issue
Block a user
Delete Branch "fix/e2e-generation-7step-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
前端生成页已从 5 步流程升级为 7 步流程(新增「生成预览」和「选择封面」两个步骤),但 E2E 测试
core-generation.spec.ts仍使用旧的 5 步断言,导致 Staging E2E Tests 持续失败。失败用例:
walks through 5-step wizard and starts generation报错:Step 3 预期「选择标题」heading,实际页面显示「生成预览」
修复
验证
Staging E2E Tests 通过即可验证修复有效。
🚀 预览环境已部署
CI全绿,自动审批通过。
CI全绿,自动审批通过。
📊 审查概览
❌ 需修改的问题(严重)
无
💡 改进建议(一般)
无
✅ 良好实践
page.getByRole("heading", ...)和page.getByRole("button", ...),这是 Playwright 推荐的最佳实践,能够提高测试的稳定性和可访问性。toBeVisible)与操作(click)搭配合理,符合自动化测试编写规范。🤖 由 AI 代码审查机器人自动生成 | 2026-07-21 00:36:49 | 模型:
🗑️ 预览环境已清理
PR #663 已关闭或合并,对应的预览环境已被清理。