Skip to content

Commit 6cae2c2

Browse files
jimpercopybara-github
authored andcommitted
Project import generated by Copybara
PiperOrigin-RevId: 881443999
1 parent 667a670 commit 6cae2c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

playwright.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default defineConfig({
2626
fullyParallel: true,
2727
/* Fail the build on CI if you accidentally left test.only in the source. */
2828
forbidOnly: !!process.env.CI,
29-
/* Retry on CI only */
30-
retries: process.env.CI ? 4 : 0,
29+
/* Allow retries to reduce flakiness. */
30+
retries: 4,
3131
/* Use 100% of the available CPU cores in CI environments. */
3232
workers: process.env.CI ? '100%' : undefined,
3333
/* Stop running tests after the first failure in CI environments. */
3434
maxFailures: process.env.CI ? 1 : undefined,
3535
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
36-
reporter: 'html',
36+
reporter: 'blob',
3737

3838
/* Shared settings for all the projects below. See
3939
https://playwright.dev/docs/api/class-testoptions. */
@@ -72,6 +72,7 @@ export default defineConfig({
7272
...devices['Desktop Firefox'],
7373
viewport: {width: 1920, height: 1080},
7474
},
75+
workers: 4, // Limit workers to avoid flakiness.
7576
},
7677

7778
{
@@ -80,6 +81,7 @@ export default defineConfig({
8081
...devices['Desktop Safari'],
8182
viewport: {width: 1920, height: 1080},
8283
},
84+
workers: 4, // Limit workers to avoid flakiness.
8385
},
8486
],
8587

0 commit comments

Comments
 (0)