Skip to content

Commit e8f7cdb

Browse files
committed
Update e2e test to ignore react 19 performance track logs
1 parent e7c5a84 commit e8f7cdb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integration/client-data-test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ test.describe("Client Data", () => {
12331233

12341234
test("bubbled server loader errors are persisted for hydrating routes", async ({
12351235
page,
1236+
browserName,
12361237
}) => {
12371238
let _consoleError = console.error;
12381239
console.error = () => {};
@@ -1274,7 +1275,12 @@ test.describe("Client Data", () => {
12741275
);
12751276
expect(html).toMatch("Child Server Error");
12761277
expect(html).not.toMatch("Should not see me");
1277-
expect(logs).toEqual(["running parent client loader"]);
1278+
if (browserName === "firefox") {
1279+
// firefox logs a bunch of React 19 performance track stuff as well
1280+
expect(logs).toContain("running parent client loader");
1281+
} else {
1282+
expect(logs).toEqual(["running parent client loader"]);
1283+
}
12781284
console.error = _consoleError;
12791285
});
12801286

0 commit comments

Comments
 (0)