fix(test): useAuth断言修复 + E2E Step4超时兜底 #1233
Reference in New Issue
Block a user
Delete Branch "fix/test-auth-and-e2e-step4"
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?
修改内容
1. useAuth.test.tsx 断言修复
expect(mockNavigate).toHaveBeenCalledWith("/")→toHaveBeenCalledWith("/app/dashboard")/改为/app/dashboard,测试断言未同步更新2. E2E Step4 heading 超时兜底
toBeVisible()→toBeVisible({ timeout: 15000 })影响范围
🚀 预览环境已部署
【阻塞级判定】
📊 审查概览
🔴 阻塞级问题(必须修复)
无
💡 改进建议(不阻塞合并)
无
✅ 良好实践
/更新为/app/dashboard),确保测试用例能够准确反映当前的业务逻辑和路由配置,保持了测试的有效性。🤖 由 AI 代码审查机器人自动生成 | 2026-08-04 04:20:15 | 模型:
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #1233 已关闭或合并,对应的预览环境已被清理。