File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff 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 ( ) )
You can’t perform that action at this time.
0 commit comments