(page: Page, path: string, retries = 0)
| 73 | |
| 74 | const BASE_TIMEOUT = isCI ? 6_000 : 3_000 |
| 75 | export async function gotoPath (page: Page, path: string, retries = 0) { |
| 76 | await vi.waitFor(() => page.goto(url(path), { timeout: BASE_TIMEOUT }), { timeout: BASE_TIMEOUT * retries || BASE_TIMEOUT }) |
| 77 | await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path && !window.useNuxtApp?.().isHydrating, path) |
| 78 | } |
| 79 | |
| 80 | const revivers = { |
| 81 | NuxtError: (data: any) => createError(data), |
no outgoing calls
no test coverage detected
searching dependent graphs…