Skip to content

Commit 1404eed

Browse files
authored
1 parent ca134f6 commit 1404eed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e/app-dir/app-prefetch/prefetching.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ createNextDescribe(
1010
({ next, isNextDev }) => {
1111
// TODO: re-enable for dev after https://vercel.slack.com/archives/C035J346QQL/p1663822388387959 is resolved (Sep 22nd 2022)
1212
if (isNextDev) {
13-
it('should skip next deploy for now', () => {})
13+
it('should skip next dev for now', () => {})
1414
return
1515
}
1616

@@ -50,12 +50,13 @@ createNextDescribe(
5050
})
5151

5252
it('should not fetch again when a static page was prefetched', async () => {
53-
const browser = await next.browser('/', { waitHydration: false })
53+
const browser = await next.browser('/404')
5454
let requests: string[] = []
5555

5656
browser.on('request', (req) => {
5757
requests.push(new URL(req.url()).pathname)
5858
})
59+
await browser.eval('location.href = "/"')
5960

6061
await browser.eval('window.nd.router.prefetch("/static-page")')
6162
await check(() => {

0 commit comments

Comments
 (0)