@@ -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