Skip to content

Commit bfe2ab4

Browse files
authored
[test] Deflake prefetching.stale-times (#85733)
1 parent 29d28ac commit bfe2ab4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ describe('app dir - prefetching (custom staleTime)', () => {
129129

130130
it('should not re-fetch cached data when navigating back to a route group', async () => {
131131
let act: ReturnType<typeof createRouterAct>
132+
// Just installing so that the page doesn't automatically move past dynamic stale time
133+
createTimeController()
132134
const browser = await next.browser('/prefetch-auto-route-groups', {
133135
beforePageLoad(page) {
134136
act = createRouterAct(page)

0 commit comments

Comments
 (0)