Skip to content

Commit

Permalink
fix failing ppr deploy test (vercel#70491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner authored and abhi12299 committed Sep 29, 2024
1 parent 6ee9239 commit 817a109
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 817a109

Please sign in to comment.