Skip to content

Commit 3fea441

Browse files
authored
chore: update e2e cache-status assertion (#2527)
The recent Durable Cache rollout on the platform changed the contents of this header.
1 parent 52d3ed3 commit 3fea441

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tests/e2e/simple-app.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ test('Renders the Home page correctly', async ({ page, simple }) => {
1212

1313
await expect(page).toHaveTitle('Simple Next App')
1414

15-
expect(headers['cache-status']).toBe('"Next.js"; hit\n"Netlify Edge"; fwd=miss')
15+
expect(headers['cache-status']).toBe(
16+
'"Next.js"; hit\n"Netlify Durable"; fwd=miss\n"Netlify Edge"; fwd=miss',
17+
)
1618

1719
const h1 = page.locator('h1')
1820
await expect(h1).toHaveText('Home')

0 commit comments

Comments
 (0)