Skip to content

Commit e309912

Browse files
committed
test: more fix waitForHydration
1 parent 2a8c5e2 commit e309912

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/plugin-rsc/e2e/helper.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ export async function waitForHydration(page: Page) {
1010
() =>
1111
page
1212
.locator('body > *')
13-
.nth(0)
14-
.evaluate(
15-
(el) =>
16-
el &&
13+
.evaluateAll((elements) =>
14+
elements.some((el) =>
1715
Object.keys(el).some((key) => key.startsWith('__reactFiber')),
16+
),
1817
),
1918
{ timeout: 3000 },
2019
)

0 commit comments

Comments
 (0)