fix(e2e): 5步向导测试末尾加unrouteAll兜底,避免页面关闭时报错 #308
Reference in New Issue
Block a user
Delete Branch "fix/e2e-unroute-all-stability"
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?
Staging E2E中core-generation.spec.ts的5步向导测试偶发失败:页面关闭时API请求还在飞导致"Target page, context or browser has been closed"。
在测试末尾加 await page.unrouteAll({ behavior: "ignoreErrors" }) 兜底清理路由。