fix(e2e): 适配 #1970 五步向导重构 + 修复 upload 转码超时 (#2048) #2049

Merged
auto-approve-bot merged 2 commits from fix/e2e-adapt-1970-refactor into develop 2026-09-26 11:20:48 +08:00
Collaborator

修复的 E2E 失败

测试文件 行号 失败原因 修复
core-generation.spec.ts 163, 327 heading "智能剪辑" 30s 超时 改用 page.getByText("智能剪辑").first() 兜底 SVG icon 干扰
core-generation.spec.ts 168, 332 "选择模式" exact 找不到 改为 /选择剪辑模式/ 正则(实际 h3 文案含 emoji 前缀)
core-generation.spec.ts 184-185, 354-356 PreviewCountModal 交互 删除(#2048 已移除该弹窗,生成数量改在 Step1 内设置)
core-generation.spec.ts 195-196, 366-367 "📋 生成配置" 找不到 改为等待 确认生成视频 按钮可见(#2024 已删除 Step4 配置卡片)
core-upload.spec.ts 164-166 30s 内停在 :processing timeout 从 30s → 90s,poll intervals 放宽

变更的选择器/断言清单

core-generation.spec.ts

- page.getByRole("heading", { name: "智能剪辑" })
+ page.getByText("智能剪辑").first()

- page.getByText("选择模式", { exact: true })
+ page.getByText(/选择剪辑模式/)

- page.getByText("要生成几个视频?")  ← PreviewCountModal
+ (已删除,#2048)

- page.getByText("📋 生成配置")
+ (已删除,改为直接等待确认按钮)

- confirmBtn.toBeEnabled()  ← 无前置 visible 检查
+ confirmBtn.toBeVisible() → confirmBtn.toBeEnabled()

core-upload.spec.ts

- { timeout: 30_000, intervals: [1_000, 2_000, 3_000] }
+ { timeout: 90_000, intervals: [3_000, 5_000, 10_000] }

关联 PR

  • Closes 灵应 分配的 P1 任务
  • 依赖 #1970(五步向导重构)、#2048(PreviewCountModal 清理)、#2024(Step4 配置卡片删除)
## 修复的 E2E 失败 | 测试文件 | 行号 | 失败原因 | 修复 | |----------|------|----------|------| | core-generation.spec.ts | 163, 327 | `heading "智能剪辑"` 30s 超时 | 改用 `page.getByText("智能剪辑").first()` 兜底 SVG icon 干扰 | | core-generation.spec.ts | 168, 332 | `"选择模式" exact` 找不到 | 改为 `/选择剪辑模式/` 正则(实际 h3 文案含 emoji 前缀) | | core-generation.spec.ts | 184-185, 354-356 | PreviewCountModal 交互 | **删除**(#2048 已移除该弹窗,生成数量改在 Step1 内设置) | | core-generation.spec.ts | 195-196, 366-367 | `"📋 生成配置"` 找不到 | 改为等待 `确认生成视频` 按钮可见(#2024 已删除 Step4 配置卡片) | | core-upload.spec.ts | 164-166 | 30s 内停在 `:processing` | timeout 从 30s → 90s,poll intervals 放宽 | ## 变更的选择器/断言清单 ### core-generation.spec.ts ``` - page.getByRole("heading", { name: "智能剪辑" }) + page.getByText("智能剪辑").first() - page.getByText("选择模式", { exact: true }) + page.getByText(/选择剪辑模式/) - page.getByText("要生成几个视频?") ← PreviewCountModal + (已删除,#2048) - page.getByText("📋 生成配置") + (已删除,改为直接等待确认按钮) - confirmBtn.toBeEnabled() ← 无前置 visible 检查 + confirmBtn.toBeVisible() → confirmBtn.toBeEnabled() ``` ### core-upload.spec.ts ``` - { timeout: 30_000, intervals: [1_000, 2_000, 3_000] } + { timeout: 90_000, intervals: [3_000, 5_000, 10_000] } ``` ## 关联 PR - Closes 灵应 分配的 P1 任务 - 依赖 #1970(五步向导重构)、#2048(PreviewCountModal 清理)、#2024(Step4 配置卡片删除)
frontend-dev added 2 commits 2026-09-26 11:15:32 +08:00
- Heading: use text fallback for h2 with SVG ThunderboltOutlined icon
- Step1 label: change exact '选择模式' to regex /选择剪辑模式/ (actual h3 text)
- Remove PreviewCountModal lines (#2048: modal deleted, count set in Step1)
- Remove '📋 生成配置' assertion (#2024: Step4 card removed)
- Both random and narrative tests updated
fix(e2e): increase upload processing timeout to 90s
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 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
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 API 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 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 Lint (pull_request) Successful in 1m45s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m52s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m57s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m58s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m4s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 2m16s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 3m31s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 4m31s
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 3m20s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 32s
AI Code Review / AI Code Review (pull_request) Successful in 7m0s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 5m10s
0788ec8967
Staging transcode can take 30-60s. Old 30s timeout was too short,
causing core-upload.spec.ts:166 to fail at :processing state.
Also widen poll intervals to reduce API pressure.

🚀 预览环境已部署

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

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

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

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

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

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-09-26 11:17:30 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot merged commit ac5353b335 into develop 2026-09-26 11:20:48 +08:00
auto-approve-bot deleted branch fix/e2e-adapt-1970-refactor 2026-09-26 11:20:51 +08:00

🗑️ 预览环境已清理

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

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

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