Skip to content

Commit

Permalink
chore: update e2e cache-status assertion
Browse files Browse the repository at this point in the history
The recent Durable Cache rollout on the platform changed the contents of this header.
  • Loading branch information
serhalp committed Jul 3, 2024
1 parent 52d3ed3 commit 354f300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/simple-app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ test('Renders the Home page correctly', async ({ page, simple }) => {

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

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

const h1 = page.locator('h1')
await expect(h1).toHaveText('Home')
Expand Down

0 comments on commit 354f300

Please sign in to comment.