@@ -869,16 +869,15 @@ describe('ReactDOMFizzServer', () => {
869869 } ) ;
870870
871871 // We still can't render it on the client.
872- expect ( Scheduler ) . toFlushAndYield ( [ ] ) ;
873- expect ( getVisibleChildren ( container ) ) . toEqual ( < div > Loading...</ div > ) ;
874-
875- // We now resolve it on the client.
876- resolveText ( 'Hello' ) ;
877-
878872 expect ( Scheduler ) . toFlushAndYield ( [
879873 'The server could not finish this Suspense boundary, likely due to an ' +
880874 'error during server rendering. Switched to client rendering.' ,
881875 ] ) ;
876+ expect ( getVisibleChildren ( container ) ) . toEqual ( < div > Loading...</ div > ) ;
877+
878+ // We now resolve it on the client.
879+ resolveText ( 'Hello' ) ;
880+ Scheduler . unstable_flushAll ( ) ;
882881
883882 // The client rendered HTML is now in place.
884883 expect ( getVisibleChildren ( container ) ) . toEqual (
@@ -2189,7 +2188,10 @@ describe('ReactDOMFizzServer', () => {
21892188 } ,
21902189 ) ;
21912190
2191+ // Disabled because of a WWW late mutations regression.
2192+ // We may want to re-enable this if we figure out why.
21922193 // @gate experimental
2194+ // @gate FIXME
21932195 it ( 'does not recreate the fallback if server errors and hydration suspends' , async ( ) => {
21942196 let isClient = false ;
21952197
@@ -2268,7 +2270,10 @@ describe('ReactDOMFizzServer', () => {
22682270 ) ;
22692271 } ) ;
22702272
2273+ // Disabled because of a WWW late mutations regression.
2274+ // We may want to re-enable this if we figure out why.
22712275 // @gate experimental
2276+ // @gate FIXME
22722277 it (
22732278 'does not recreate the fallback if server errors and hydration suspends ' +
22742279 'and root receives a transition' ,
@@ -2364,7 +2369,10 @@ describe('ReactDOMFizzServer', () => {
23642369 } ,
23652370 ) ;
23662371
2372+ // Disabled because of a WWW late mutations regression.
2373+ // We may want to re-enable this if we figure out why.
23672374 // @gate experimental
2375+ // @gate FIXME
23682376 it (
23692377 'recreates the fallback if server errors and hydration suspends but ' +
23702378 'client receives new props' ,
@@ -2542,25 +2550,25 @@ describe('ReactDOMFizzServer', () => {
25422550 } ,
25432551 } ) ;
25442552
2545- // An error happened but instead of surfacing it to the UI, we suspended.
2546- expect ( Scheduler ) . toFlushAndYield ( [ ] ) ;
2553+ // An error logged but instead of surfacing it to the UI, we switched
2554+ // to client rendering.
2555+ expect ( Scheduler ) . toFlushAndYield ( [
2556+ 'Hydration error' ,
2557+ 'There was an error while hydrating this Suspense boundary. Switched ' +
2558+ 'to client rendering.' ,
2559+ ] ) ;
25472560 expect ( getVisibleChildren ( container ) ) . toEqual (
25482561 < div >
25492562 < span />
2550- < span > Yay! </ span >
2563+ Loading...
25512564 < span />
25522565 </ div > ,
25532566 ) ;
25542567
25552568 await act ( async ( ) => {
25562569 resolveText ( 'Yay!' ) ;
25572570 } ) ;
2558- expect ( Scheduler ) . toFlushAndYield ( [
2559- 'Yay!' ,
2560- 'Hydration error' ,
2561- 'There was an error while hydrating this Suspense boundary. Switched ' +
2562- 'to client rendering.' ,
2563- ] ) ;
2571+ expect ( Scheduler ) . toFlushAndYield ( [ 'Yay!' ] ) ;
25642572 expect ( getVisibleChildren ( container ) ) . toEqual (
25652573 < div >
25662574 < span />
0 commit comments