fix(work-orders): unfreeze visual-spec timers for board error retry

Use setFixedTime so React Query can finish the 500 retry and render the alert.
This commit is contained in:
Arthur Bassi 2026-08-21 13:32:58 -03:00
parent b50ebcff42
commit abc14ed8f9

View file

@ -83,8 +83,7 @@ function isBoardDetail(pathname: string) {
}
async function mockWorkOrderApi(page: Page, mode: "default" | "empty" | "error" = "default") {
await page.clock.install({ time: new Date(FROZEN_NOW) });
await page.clock.resume();
await page.clock.setFixedTime(new Date(FROZEN_NOW));
await page.addInitScript((user) => localStorage.setItem("auth", JSON.stringify(user)), TEST_USER);
await page.route("**/api/**", async (route) => {