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

This commit is contained in:
Bobbie Goede 2024-01-31 20:06:53 +01:00 committed by GitHub
parent e76b41786d
commit f665434781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 25 additions and 21 deletions

View File

@ -619,7 +619,8 @@ describe('nuxt links', () => {
{ retry: isWebpack && isWindows ? 10 : 0 } { 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
const page = await createPage('/nested/foo/test', { const page = await createPage('/nested/foo/test', {
viewport: { viewport: {
@ -641,7 +642,10 @@ describe('nuxt links', () => {
await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path, `/nested/foo/test`) await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path, `/nested/foo/test`)
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 }
)
}) })
describe('head tags', () => { describe('head tags', () => {