File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1224,15 +1224,18 @@ function defineTest(f: Fixture) {
12241224 expect ( res ?. status ( ) ) . toBe ( 500 )
12251225 } )
12261226
1227- test ( 'hydrate while streaming @js' , async ( { page } ) => {
1228- // client is interactive before suspense is resolved
1227+ test ( 'streaming @js' , async ( { page } ) => {
1228+ // suspense streaming works
12291229 await page . goto ( f . url ( './?test-suspense=1000' ) , { waitUntil : 'commit' } )
1230- await waitForHydration ( page )
12311230 await expect ( page . getByTestId ( 'suspense' ) ) . toContainText (
1232- 'suspense-fallback ' ,
1231+ 'suspense-resolved ' ,
12331232 )
1233+
1234+ // also client is interactive (hydrated) before suspense is resolved
1235+ await page . goto ( f . url ( './?test-suspense=100000' ) , { waitUntil : 'commit' } )
1236+ await waitForHydration ( page )
12341237 await expect ( page . getByTestId ( 'suspense' ) ) . toContainText (
1235- 'suspense-resolved ' ,
1238+ 'suspense-fallback ' ,
12361239 )
12371240 } )
12381241
You can’t perform that action at this time.
0 commit comments