ci: retry flaky test when running in Windows with Webpack (#25536)

This commit is contained in:
Bobbie Goede 2024-01-31 18:49:35 +01:00 committed by GitHub
parent d7226f5ad0
commit f3c1c3e381
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -591,7 +591,8 @@ describe('nuxt links', () => {
await page.close() await page.close()
}) })
it('expect scroll to top on routes with same component', async () => { it('expect scroll to top on routes with same component',
async () => {
// #22402 // #22402
const page = await createPage('/big-page-1', { const page = await createPage('/big-page-1', {
viewport: { viewport: {
@ -613,7 +614,10 @@ describe('nuxt links', () => {
await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path, `/big-page-1`) await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path, `/big-page-1`)
expect(await page.evaluate(() => window.scrollY)).toBe(0) expect(await page.evaluate(() => window.scrollY)).toBe(0)
await page.close() await page.close()
}) },
// Flaky when run on windows + webpack
{ retry: isWebpack && isWindows ? 10 : 0 }
)
it('expect scroll to top on nested pages', async () => { it('expect scroll to top on nested pages', async () => {
// #20523 // #20523