fix(e2e): 替换已删除的 POST /templates 为 GET /templates 获取默认模板 #1931
Reference in New Issue
Block a user
Delete Branch "fix/e2e-template-cleanup"
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?
背景
#1918 删除模板 CRUD 端点后,
apps/web/e2e/core-generation.spec.ts第 148 行expect(template.status()).toBe(201)一直失败,阻塞 staging E2E。修改
POST /api/v1/templates创建测试模板的代码(该端点已删除)GET /api/v1/templates,利用 #1926 P0 修复中 GET /templates 对新用户自动兜底创建默认模板的逻辑items[0].id为 truthy,后续流程依赖的默认模板已存在TemplateResponse类型验证
关联: #1926, #1918
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #1931 已关闭或合并,对应的预览环境已被清理。
🚀 预览环境已部署