ci: retry flaky test when using Webpack (#25550)

This commit is contained in:
Bobbie Goede 2024-02-01 12:03:47 +01:00 committed by GitHub
parent f665434781
commit 67445550b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,8 +615,8 @@ describe('nuxt links', () => {
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 // Flaky behavior when using Webpack
{ retry: isWebpack && isWindows ? 10 : 0 } { retry: isWebpack ? 10 : 0 }
) )
it('expect scroll to top on nested pages', it('expect scroll to top on nested pages',
@ -643,8 +643,8 @@ describe('nuxt links', () => {
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 // Flaky behavior when using Webpack
{ retry: isWebpack && isWindows ? 10 : 0 } { retry: isWebpack ? 10 : 0 }
) )
}) })