fix(e2e): 修复E2E测试API路径从/edit-plans到/template-editors #667
Reference in New Issue
Block a user
Delete Branch "fix/e2e-template-editors-api-path"
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?
问题
Staging E2E 测试在最后一步等待 plan creation API 超时(30s)。
根因
PR #657 下线了旧的
/edit-plans/*路由,前端createEditPlan已经切换到POST /template-editors。但 E2E 测试里
page.waitForResponse()还在匹配/edit-plans,导致永远等不到响应。修复
将测试中的 URL 匹配从
/edit-plans改为/template-editors。🚀 预览环境已部署
CI全绿,自动审批通过。
CI全绿,自动审批通过。
📊 审查概览
❌ 需修改的问题(严重)
无
💡 改进建议(一般)
100644变更为100755(添加了可执行权限)。TypeScript 测试文件通常不需要可执行权限,建议确认是否为误操作,如无特殊用途,建议保持默认的644权限。✅ 良好实践
无
🤖 由 AI 代码审查机器人自动生成 | 2026-07-21 01:02:21 | 模型:
🗑️ 预览环境已清理
PR #667 已关闭或合并,对应的预览环境已被清理。