fix(ci): package contract fixtures and recover deploy chunk races
This commit is contained in:
@@ -26,6 +26,15 @@ test("non-destructive operator canary covers routes and grounded knowledge", asy
|
||||
await page.goto("/login");
|
||||
await page.getByRole("button", { name: "Verken als Operationsmanager" }).click();
|
||||
await expect(page).toHaveURL(/\/dashboard$/);
|
||||
if (pageErrors.some((message) => message.toLowerCase().includes("dynamically imported module"))) {
|
||||
// A deploy can replace the SPA between loading index.html and its lazy
|
||||
// dashboard chunk. One clean reload must recover; a persistent chunk or
|
||||
// server error is collected again and still fails the canary below.
|
||||
pageErrors.length = 0;
|
||||
await page.reload({ waitUntil: "domcontentloaded" });
|
||||
await expect(page).toHaveURL(/\/dashboard$/);
|
||||
await expect(page.locator("main")).toBeVisible();
|
||||
}
|
||||
|
||||
for (const [path, heading] of [
|
||||
["/vehicles", "Wagenpark"],
|
||||
|
||||
Reference in New Issue
Block a user