fix(e2e): 修复 step3→step4 导航 — 确认生成按钮在 step4 不在 step3 #1969

Merged
auto-approve-bot merged 1 commits from fix/e2e-step4-navigation-v2 into develop 2026-09-16 18:38:12 +08:00
Collaborator

根因

GenerateStepActions.tsx 中 currentStep < 4 显示"下一步 →",
仅 currentStep === 4 才渲染"✨ 确认生成视频"。

E2E 测试原在 step 3(标题页)查找"确认生成视频"按钮,
但该按钮只在 step 4 出现,导致 waitForResponse 超时 30s 后失败。

修复

  1. step 3:点击「下一步 →」按钮,进入 step 4
  2. step 4:等待「✨ 确认生成视频」可见,再点击触发生成

变更文件

  • apps/web/e2e/core-generation.spec.ts:
    • 移除 step 3 查找"确认生成视频"的逻辑
    • step 3 改为点击"下一步" → step 4
    • step 4 使用 xx-step-actions .xx-btn-primary 定位确认按钮
    • 增加 Promise.any 容错(渲染完成 vs 失败/超时)
    • 超时从 600s 降至 360s(更合理的 CI 时间)

关联

  • 接续 PR #1967(已合并,修复了 unit tests)
  • 本 PR 专攻 Staging E2E 测试失败
## 根因 `GenerateStepActions.tsx` 中 `currentStep < 4` 显示"下一步 →", 仅 `currentStep === 4` 才渲染"✨ 确认生成视频"。 E2E 测试原在 step 3(标题页)查找"确认生成视频"按钮, 但该按钮只在 step 4 出现,导致 `waitForResponse` 超时 30s 后失败。 ## 修复 1. **step 3**:点击「下一步 →」按钮,进入 step 4 2. **step 4**:等待「✨ 确认生成视频」可见,再点击触发生成 ## 变更文件 - `apps/web/e2e/core-generation.spec.ts`: - 移除 step 3 查找"确认生成视频"的逻辑 - step 3 改为点击"下一步" → step 4 - step 4 使用 `xx-step-actions .xx-btn-primary` 定位确认按钮 - 增加 `Promise.any` 容错(渲染完成 vs 失败/超时) - 超时从 600s 降至 360s(更合理的 CI 时间) ## 关联 - 接续 PR #1967(已合并,修复了 unit tests) - 本 PR 专攻 Staging E2E 测试失败
frontend-dev added 1 commit 2026-09-16 18:27:59 +08:00
fix(e2e): step3 点下一步进入 step4,再点确认生成视频
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
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 / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m21s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m22s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m33s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m40s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m5s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 3m56s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 5m21s
AI Code Review / AI Code Review (pull_request) Successful in 6m34s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 9m33s
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 / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 8m39s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 33s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 3m12s
7579e28dba
根因:GenerateStepActions 中 currentStep < 4 显示"下一步",
仅 currentStep === 4 才渲染"确认生成视频"。测试原在 step3
找"确认生成视频"永远找不到,导致 waitForResponse 超时。

修复:step3 点"下一步" → 进入 step4 → 点"确认生成视频"。
auto-approve-bot approved these changes 2026-09-16 18:29:33 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-09-16 18:29:33 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。

🚀 预览环境已部署

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

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

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

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

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1969 | | 预览链接 | [https://pr-1969.preview.xiaoxiajianji.com](https://pr-1969.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot merged commit ae733312db into develop 2026-09-16 18:38:12 +08:00
auto-approve-bot deleted branch fix/e2e-step4-navigation-v2 2026-09-16 18:38:15 +08:00

🗑️ 预览环境已清理

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

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

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