mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
Configure playwright to automatically retry failing tests up to 3 times (#7764)
* Add retries to playwright * lint * Remove line
This commit is contained in:
parent
4da44c4589
commit
9f8313f5a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user