Skip to content

Commit 625386a

Browse files
committed
Fix integration test failing due to 19.2 react performance script tag
1 parent a6c9808 commit 625386a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

integration/link-test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,17 @@ test.describe("route module link export", () => {
618618
let app = new PlaywrightFixture(appFixture, page);
619619
await app.goto("/");
620620
let scripts = await page.$$("script");
621-
expect(scripts.length).toEqual(6);
621+
622+
// Scripts:
623+
// RR: window.__reactRouterContext
624+
// RR: window.__reactRouterManifest/window.__reactRouterRouteModules
625+
// React: requestAnimationFrame(function(){$RT=performance.now()});
626+
// RR: window.__reactRouterContext.streamController.enqueue()
627+
// React: $RC=function(b,c,e){...
628+
// RR: window.__reactRouterContext.streamController.close();
629+
// React: $RC("B:1","S:1")
630+
expect(scripts.length).toEqual(7);
631+
622632
expect(await scripts[0].innerText()).toContain(
623633
"__reactRouterContext",
624634
);

0 commit comments

Comments
 (0)