@@ -5,13 +5,10 @@ const expectImageWasLoaded = async (locator: Locator) => {
55 expect ( await locator . evaluate ( ( img : HTMLImageElement ) => img . naturalHeight ) ) . toBeGreaterThan ( 0 )
66}
77test ( 'Renders the Home page correctly with output export' , async ( { page, outputExport } ) => {
8- const response = await page . goto ( outputExport . url )
9- const headers = response ?. headers ( ) || { }
8+ await page . goto ( outputExport . url )
109
1110 await expect ( page ) . toHaveTitle ( 'Simple Next App' )
1211
13- expect ( headers [ 'cache-status' ] ) . toBe ( '"Netlify Edge"; fwd=miss' )
14-
1512 const h1 = page . locator ( 'h1' )
1613 await expect ( h1 ) . toHaveText ( 'Home' )
1714
@@ -22,13 +19,10 @@ test('Renders the Home page correctly with output export and publish set to out'
2219 page,
2320 ouputExportPublishOut,
2421} ) => {
25- const response = await page . goto ( ouputExportPublishOut . url )
26- const headers = response ?. headers ( ) || { }
22+ await page . goto ( ouputExportPublishOut . url )
2723
2824 await expect ( page ) . toHaveTitle ( 'Simple Next App' )
2925
30- expect ( headers [ 'cache-status' ] ) . toBe ( '"Netlify Edge"; fwd=miss' )
31-
3226 const h1 = page . locator ( 'h1' )
3327 await expect ( h1 ) . toHaveText ( 'Home' )
3428
@@ -39,13 +33,10 @@ test('Renders the Home page correctly with output export and custom dist dir', a
3933 page,
4034 outputExportCustomDist,
4135} ) => {
42- const response = await page . goto ( outputExportCustomDist . url )
43- const headers = response ?. headers ( ) || { }
36+ await page . goto ( outputExportCustomDist . url )
4437
4538 await expect ( page ) . toHaveTitle ( 'Simple Next App' )
4639
47- expect ( headers [ 'cache-status' ] ) . toBe ( '"Netlify Edge"; fwd=miss' )
48-
4940 const h1 = page . locator ( 'h1' )
5041 await expect ( h1 ) . toHaveText ( 'Home' )
5142
0 commit comments