From ef6d5595a831272088095a1d6cf889e2af43ff03 Mon Sep 17 00:00:00 2001 From: Mateusz Bocian Date: Tue, 25 Nov 2025 11:52:57 -0500 Subject: [PATCH] test: remove cache header check from export tests --- tests/e2e/export.test.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/e2e/export.test.ts b/tests/e2e/export.test.ts index ec930d0ff8..075fb483de 100644 --- a/tests/e2e/export.test.ts +++ b/tests/e2e/export.test.ts @@ -5,13 +5,10 @@ const expectImageWasLoaded = async (locator: Locator) => { expect(await locator.evaluate((img: HTMLImageElement) => img.naturalHeight)).toBeGreaterThan(0) } test('Renders the Home page correctly with output export', async ({ page, outputExport }) => { - const response = await page.goto(outputExport.url) - const headers = response?.headers() || {} + await page.goto(outputExport.url) await expect(page).toHaveTitle('Simple Next App') - expect(headers['cache-status']).toBe('"Netlify Edge"; fwd=miss') - const h1 = page.locator('h1') await expect(h1).toHaveText('Home') @@ -22,13 +19,10 @@ test('Renders the Home page correctly with output export and publish set to out' page, ouputExportPublishOut, }) => { - const response = await page.goto(ouputExportPublishOut.url) - const headers = response?.headers() || {} + await page.goto(ouputExportPublishOut.url) await expect(page).toHaveTitle('Simple Next App') - expect(headers['cache-status']).toBe('"Netlify Edge"; fwd=miss') - const h1 = page.locator('h1') await expect(h1).toHaveText('Home') @@ -39,13 +33,10 @@ test('Renders the Home page correctly with output export and custom dist dir', a page, outputExportCustomDist, }) => { - const response = await page.goto(outputExportCustomDist.url) - const headers = response?.headers() || {} + await page.goto(outputExportCustomDist.url) await expect(page).toHaveTitle('Simple Next App') - expect(headers['cache-status']).toBe('"Netlify Edge"; fwd=miss') - const h1 = page.locator('h1') await expect(h1).toHaveText('Home')