Skip to content

Commit 3b9e06b

Browse files
committed
chore: cleanup
1 parent 925aee4 commit 3b9e06b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/plugin-rsc/e2e/helper.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ export const testNoJs = test.extend({
66

77
export async function waitForHydration(page: Page) {
88
await expect
9-
.poll(() =>
10-
page
11-
.locator('body')
12-
.evaluate(
13-
(el) =>
14-
el && Object.keys(el).some((key) => key.startsWith('__reactFiber')),
15-
),
9+
.poll(
10+
() =>
11+
page
12+
.locator('body')
13+
.evaluate(
14+
(el) =>
15+
el &&
16+
Object.keys(el).some((key) => key.startsWith('__reactFiber')),
17+
),
18+
{ timeout: 3000 },
1619
)
1720
.toBeTruthy()
1821
}

0 commit comments

Comments
 (0)