File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ test('smoke test', async ({page}) => {
2121 await expect ( consoleErrors ) . toEqual ( [ ] ) ;
2222 await expect ( pageErrors ) . toEqual ( [ ] ) ;
2323
24- // TODO: prerender streaming is broken for large content. Re-enable once fixed.
25- // await page.goto('/prerender');
26- // await expect(page.getByTestId('prerendered')).toBeAttached();
24+ await page . goto ( '/prerender' ) ;
25+ await expect ( page . getByTestId ( 'prerendered' ) ) . toBeAttached ( ) ;
2726
28- // await expect(consoleErrors).toEqual([]);
29- // await expect(pageErrors).toEqual([]);
27+ await expect ( consoleErrors ) . toEqual ( [ ] ) ;
28+ await expect ( pageErrors ) . toEqual ( [ ] ) ;
3029} ) ;
Original file line number Diff line number Diff line change @@ -235,9 +235,11 @@ export default async function App({prerender, noCache}) {
235235 < Foo > { dedupedChild } </ Foo >
236236 < Bar > { Promise . resolve ( [ dedupedChild ] ) } </ Bar >
237237 < Navigate />
238- < React . Suspense fallback = { null } >
239- < LargeContent />
240- </ React . Suspense >
238+ { prerender ? null : ( // TODO: prerender is broken for large content for some reason.
239+ < React . Suspense fallback = { null } >
240+ < LargeContent />
241+ </ React . Suspense >
242+ ) }
241243 </ Container >
242244 </ body >
243245 </ html >
You can’t perform that action at this time.
0 commit comments