fix(e2e): 修复E2E测试API路径从/edit-plans到/template-editors #667

Merged
auto-approve-bot merged 1 commits from fix/e2e-template-editors-api-path into develop 2026-07-21 01:02:54 +08:00
Owner

问题

Staging E2E 测试在最后一步等待 plan creation API 超时(30s)。

根因

PR #657 下线了旧的 /edit-plans/* 路由,前端 createEditPlan 已经切换到 POST /template-editors
但 E2E 测试里 page.waitForResponse() 还在匹配 /edit-plans,导致永远等不到响应。

修复

将测试中的 URL 匹配从 /edit-plans 改为 /template-editors

### 问题 Staging E2E 测试在最后一步等待 plan creation API 超时(30s)。 ### 根因 PR #657 下线了旧的 `/edit-plans/*` 路由,前端 `createEditPlan` 已经切换到 `POST /template-editors`。 但 E2E 测试里 `page.waitForResponse()` 还在匹配 `/edit-plans`,导致永远等不到响应。 ### 修复 将测试中的 URL 匹配从 `/edit-plans` 改为 `/template-editors`。
xiaoxia added 1 commit 2026-07-21 00:59:58 +08:00
fix(e2e): 更新API路径从/edit-plans到/template-editors
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m23s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m43s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m53s
AI Code Review / AI Code Review (pull_request) Successful in 2m23s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 2m27s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 2m54s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 15s
7fa676fa30
PR #657 下线了旧的 /edit-plans/* 路由,前端已切换到 /template-editors。
E2E 测试里 waitForResponse 还在等 /edit-plans,导致永远超时。

🚀 预览环境已部署

项目 详情
PR号 #667
预览链接 https://pr-667.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #667 | | 预览链接 | [https://pr-667.preview.xiaoxiajianji.com](https://pr-667.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot approved these changes 2026-07-21 01:01:52 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-07-21 01:01:52 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
Collaborator

📊 审查概览

  • 整体评价:通过
  • 严重问题数量:0 个
  • 一般建议数量:1 个

需修改的问题(严重)

💡 改进建议(一般)

  1. [apps/web/e2e/core-generation.spec.ts] 文件权限变更
    • 具体内容:Diff 显示文件权限从 100644 变更为 100755(添加了可执行权限)。TypeScript 测试文件通常不需要可执行权限,建议确认是否为误操作,如无特殊用途,建议保持默认的 644 权限。

良好实践


🤖 由 AI 代码审查机器人自动生成 | 2026-07-21 01:02:21 | 模型:

### 📊 审查概览 - 整体评价:通过 - 严重问题数量:0 个 - 一般建议数量:1 个 ### ❌ 需修改的问题(严重) 无 ### 💡 改进建议(一般) 1. **[apps/web/e2e/core-generation.spec.ts] 文件权限变更** - 具体内容:Diff 显示文件权限从 `100644` 变更为 `100755`(添加了可执行权限)。TypeScript 测试文件通常不需要可执行权限,建议确认是否为误操作,如无特殊用途,建议保持默认的 `644` 权限。 ### ✅ 良好实践 无 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-07-21 01:02:21 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->
auto-approve-bot merged commit cda899ad5f into develop 2026-07-21 01:02:54 +08:00
auto-approve-bot deleted branch fix/e2e-template-editors-api-path 2026-07-21 01:02:54 +08:00

🗑️ 预览环境已清理

PR #667 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #667 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.