@@ -22,12 +22,15 @@ export default defineConfig({
2222 fullyParallel : true ,
2323 /* Fail the build on CI if you accidentally left test.only in the source code. */
2424 forbidOnly : ! ! process . env . CI ,
25- /* Retry on CI only */
26- retries : process . env . CI ? 2 : 0 ,
25+ /* Retry on CI only (1 retry = 2 attempts max) */
26+ retries : process . env . CI ? 1 : 0 ,
2727 /* Opt out of parallel tests on CI. */
2828 workers : process . env . CI ? 1 : undefined ,
2929 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
30- reporter : 'html' ,
30+ reporter : [
31+ [ 'list' ] ,
32+ [ 'html' ] ,
33+ ] ,
3134 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3235 use : {
3336 /* Base URL to use in actions like `await page.goto('')`. */
@@ -36,17 +39,17 @@ export default defineConfig({
3639 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3740 trace : 'on-first-retry' ,
3841
39- /* Increase timeouts for web instances with higher latency */
40- actionTimeout : 30000 , // 30 seconds for actions (default is 5s)
41- navigationTimeout : 30000 , // 30 seconds for navigation (default is 30s)
42+ /* Timeouts for web instances */
43+ actionTimeout : 15000 , // 15 seconds for actions
44+ navigationTimeout : 15000 , // 15 seconds for navigation
4245 } ,
43-
46+
4447 /* Global test timeout */
45- timeout : 60000 , // 60 seconds per test (default is 30s)
46-
48+ timeout : 30000 , // 30 seconds per test
49+
4750 /* Expect timeout for assertions */
4851 expect : {
49- timeout : 10000 , // 10 seconds for assertions (default is 5s)
52+ timeout : 5000 , // 5 seconds for assertions
5053 } ,
5154
5255 /* Configure projects for major browsers */
0 commit comments