Configure playwright to automatically retry failing tests up to 3 times (#7764)

* Add retries to playwright

* lint

* Remove line
This commit is contained in:
Freddy Boulton 2024-03-20 13:38:15 -07:00 committed by GitHub
parent 4da44c4589
commit 9f8313f5a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,8 @@ const base = defineConfig({
timeout: 30000,
testMatch: /.*.spec.ts/,
testDir: "..",
workers: process.env.CI ? 1 : undefined
workers: process.env.CI ? 1 : undefined,
retries: 3
});
const normal = defineConfig(base, {
@ -40,7 +41,8 @@ const lite = defineConfig(base, {
// "**/kitchen_sink.spec.ts",
"**/gallery_component_events.spec.ts"
],
workers: 1
workers: 1,
retries: 3
});
lite.projects = undefined; // Explicitly unset this field due to https://github.com/microsoft/playwright/issues/28795