Skip to content

Commit 2ff9de0

Browse files
committed
Test stability with 1 worker
1 parent 8bb626f commit 2ff9de0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

playwright.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default defineConfig({
1919
/* Retry on CI only */
2020
retries: process.env.CI ? 2 : 0,
2121
/* Opt out of parallel tests. */
22-
workers: process.env.CI ? 2 : 4,
22+
// workers: process.env.CI ? 2 : undefined,
23+
// workers: process.env.CI ? 2 : 1,
24+
workers: 1,
2325
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
2426
reporter: 'html',
2527
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
@@ -32,7 +34,7 @@ export default defineConfig({
3234
slowMo: parseInt(process.env.SLOW_MO || '0'),
3335
},
3436
},
35-
timeout: 60000,
37+
timeout: process.env.CI ? 60000 : parseInt(process.env.TIMEOUT || '15000'),
3638

3739
/* Configure projects for major browsers */
3840
projects: process.env.CI

0 commit comments

Comments
 (0)