File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/e2e/app-dir/app-prefetch Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( ( ) => {
You can’t perform that action at this time.
0 commit comments