fix(e2e): 5步向导测试末尾加unrouteAll兜底,避免页面关闭时报错 #308

Merged
xiaoxia merged 1 commits from fix/e2e-unroute-all-stability into develop 2026-07-14 11:47:12 +08:00
+3
View File
@@ -251,6 +251,9 @@ test.describe("Core generation flow", () => {
await expect(page.locator(".xx-products-page")).toBeVisible({
timeout: 15_000,
});
// 清理所有路由,避免页面关闭时飞地API请求导致测试报错
await page.unrouteAll({ behavior: "ignoreErrors" });
});
test("generation task API creates and lists tasks", async ({ request }) => {