diff --git a/integration/client-data-test.ts b/integration/client-data-test.ts index e06f01fa57..fd0fd9fd6f 100644 --- a/integration/client-data-test.ts +++ b/integration/client-data-test.ts @@ -913,6 +913,7 @@ test.describe("Client Data", () => { }); test("does not prefetch server loader if a client loader is present", async ({ page, + browserName, }) => { appFixture = await createAppFixture( await createFixture({ @@ -947,12 +948,18 @@ test.describe("Client Data", () => { let app = new PlaywrightFixture(appFixture, page); await app.goto("/", true); - // Only prefetch child server loader since parent has a `clientLoader` - expect(dataUrls).toEqual([ - expect.stringMatching( - /parent\/child\.data\?_routes=routes%2Fparent\.child/ - ), - ]); + + if (browserName === "webkit") { + // No prefetch support :/ + expect(dataUrls).toEqual([]); + } else { + // Only prefetch child server loader since parent has a `clientLoader` + expect(dataUrls).toEqual([ + expect.stringMatching( + /parent\/child\.data\?_routes=routes%2Fparent\.child/ + ), + ]); + } }); });