Skip to content

Commit

Permalink
fix failing ppr deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Sep 25, 2024
1 parent c13f502 commit ea8d502
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/e2e/app-dir/ppr-full/ppr-full.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,14 @@ describe('ppr-full', () => {

// We expect to get the fallback shell.
$ = await next.render$(pathname)
expect($('[data-layout]').data('layout')).toBe(fallbackID)

// When deployed to Vercel, it will serve a stale version of the dynamic shell
// Whereas with `next start` it will serve the fallback shell
if (isNextDeploy) {
expect($('[data-layout]').data('layout')).toBe(dynamicID)
} else {
expect($('[data-layout]').data('layout')).toBe(fallbackID)
}

// Let's wait for the page to be revalidated.
let revalidatedDynamicID: string
Expand Down

0 comments on commit ea8d502

Please sign in to comment.