diff --git a/e2e/vendors/vendors.visual.spec.ts b/e2e/vendors/vendors.visual.spec.ts index 705c4f4e..94ba0c69 100644 --- a/e2e/vendors/vendors.visual.spec.ts +++ b/e2e/vendors/vendors.visual.spec.ts @@ -70,6 +70,13 @@ async function mockVendorApi(page: Page, mode: "default" | "empty" | "error" = " await page.clock.setFixedTime(new Date("2026-08-10T12:00:00.000Z")); await page.addInitScript((user) => localStorage.setItem("auth", JSON.stringify(user)), TEST_USER); + // The vendor address map preview embeds maps.google.com in an iframe. Its + // content depends on the network, on timing, and on whatever Google serves + // that minute, none of which belongs in a test with "deterministic pixel + // regression" in its name. Aborting the request pins the frame to a blank + // box, so the shot measures our layout and nothing else. + await page.route(/https:\/\/(www\.)?google\.com\/maps/, (route) => route.abort()); + await page.route("**/api/**", async (route) => { const request = route.request(); const url = new URL(request.url());