Skip to content

Commit ea8d502

Browse files
committed
fix failing ppr deploy test
1 parent c13f502 commit ea8d502

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/e2e/app-dir/ppr-full/ppr-full.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,14 @@ describe('ppr-full', () => {
458458

459459
// We expect to get the fallback shell.
460460
$ = await next.render$(pathname)
461-
expect($('[data-layout]').data('layout')).toBe(fallbackID)
461+
462+
// When deployed to Vercel, it will serve a stale version of the dynamic shell
463+
// Whereas with `next start` it will serve the fallback shell
464+
if (isNextDeploy) {
465+
expect($('[data-layout]').data('layout')).toBe(dynamicID)
466+
} else {
467+
expect($('[data-layout]').data('layout')).toBe(fallbackID)
468+
}
462469

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

0 commit comments

Comments
 (0)