test/user-journey #3
Reference in New Issue
Block a user
Delete Branch "test/user-journey"
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?
🔴 Critical Issues Fixed: 1. build-image: 添加depends_on: e2e-tests - 确保E2E测试通过后才构建镜像 2. deploy-production: 添加depends_on: build-image - 确保镜像构建成功后才部署 3. archive-to-main: 添加depends_on: deploy-production - 确保部署成功后才归档 4. security-scan: 移除failure: ignore - 安全漏洞不再被忽略 5. unit-tests: 移除对security-scan的依赖 - 安全扫描可独立失败阻断流程 流程变更: - 测试失败 → 不构建镜像 - 构建失败 → 不部署 - 部署失败 → 不归档 - 安全漏洞 → 阻断流程修复文件: - e2e/smoke/health-check.spec.ts - e2e/smoke/critical-paths.spec.ts 修复内容: 1. 添加 { waitUntil: 'domcontentloaded' } 选项,避免页面加载超时 2. 使用 getByRole('banner') 替代 locator('header'),避免严格模式冲突 3. 使用 getByRole('navigation').first() 替代 locator('nav'),避免多个导航元素冲突 4. 增加断言超时时间,提高测试稳定性 测试结果: - ✅ 8个冒烟测试全部通过 - ⏱️ 总耗时:9.6秒 - 🚀 测试速度大幅提升