M54: harden operations and demo resilience
MobilityOps acceptance / backend (push) Failing after 19s
MobilityOps acceptance / frontend (push) Successful in 25s
MobilityOps acceptance / e2e (push) Skipped

This commit is contained in:
NuklearRabbit
2026-08-24 03:31:03 +02:00
parent b0706989db
commit 81e3fd63bd
101 changed files with 5641 additions and 828 deletions
+26
View File
@@ -400,9 +400,35 @@ test("rental employee role has a restricted nav and cannot reach manager-only pa
await page.goto("/privacy");
await expect(page.getByText("These governance functions are available to Operations Managers only.")).toBeVisible();
await page.goto("/users");
await expect(page.getByText("User administration is available to Operations Managers only.").first()).toBeVisible();
await expect(page.getByRole("button", { name: "Add user" })).toHaveCount(0);
await page.goto("/vehicles/MO-024");
await expect(page.getByRole("tab", { name: "Quality" })).toHaveCount(0);
await expect(page.getByRole("button", { name: "Reset demo data" })).toHaveCount(0);
});
test("rental employee return result exposes operational follow-up but no manager-only evidence links", async ({
page,
}) => {
await switchRole(page);
await page.getByRole("button", { name: "Explore as Rental Employee" }).click();
await expect(page).toHaveURL(/\/dashboard$/);
await page.goto("/bookings/BK-DEMO-RETURN");
await page.getByLabel("End odometer (km)").fill("54000");
await page.getByLabel("Fuel level (%)").fill("75");
await page.getByRole("button", { name: "Review return" }).click();
await page.getByRole("button", { name: "Confirm return" }).click();
await expect(page.getByRole("heading", { name: "Return registered" })).toBeVisible();
await expect(page.getByRole("link", { name: /View vehicle MO-024/ })).toBeVisible();
await expect(page.getByRole("link", { name: "View automation status" })).toHaveCount(0);
await expect(page.getByRole("link", { name: "Trace the complete operation" })).toHaveCount(0);
});
test("operations manager can reset demo data and is returned to login", async ({ page }) => {
await expect(page.getByRole("button", { name: "Reset demo data" })).toBeVisible();
await page.getByRole("button", { name: "Reset demo data" }).click();