Skip to content

Commit 1c5f980

Browse files
committed
chore: cleanup
1 parent 6c63dba commit 1c5f980

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -994,17 +994,16 @@ function defineTest(f: Fixture) {
994994
errors.push(error)
995995
})
996996
await page.goto(f.url('/?test-hydration-mismatch'))
997-
await expect(() => {
998-
expect(errors).toMatchObject([
999-
{
1000-
message: expect.stringContaining(
1001-
f.mode === 'dev'
1002-
? `Hydration failed because the server rendered HTML didn't match the client.`
1003-
: `Minified React error #418`,
1004-
),
1005-
},
1006-
])
1007-
}).toPass()
997+
await waitForHydration(page)
998+
expect(errors).toMatchObject([
999+
{
1000+
message: expect.stringContaining(
1001+
f.mode === 'dev'
1002+
? `Hydration failed because the server rendered HTML didn't match the client.`
1003+
: `Minified React error #418`,
1004+
),
1005+
},
1006+
])
10081007

10091008
errors.length = 0
10101009
await page.goto(f.url())

0 commit comments

Comments
 (0)