Skip to content

Commit 7b6af35

Browse files
committed
Restore playwright config
1 parent 138f7ab commit 7b6af35

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/e2e/playwright.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export default defineConfig( {
5151
fullyParallel: false,
5252
/* Fail the build on CI if you accidentally left test.only in the source code. */
5353
forbidOnly: !! process.env.CI,
54+
/* Retry on CI only */
55+
retries: process.env.CI ? 2 : 0,
5456
/* Opt out of parallel tests. */
5557
workers: 1,
5658
/* Reporters to use. See https://playwright.dev/docs/test-reporters */
@@ -72,11 +74,7 @@ export default defineConfig( {
7274
video: 'on-first-retry',
7375
viewport: { width: 1280, height: 720 },
7476
},
75-
// Global timeout for each action (click, fill, etc.)
76-
timeout: process.env.CI ? 60000 : 30000,
77-
78-
// Retry failed tests
79-
retries: process.env.CI ? 2 : 0,
77+
timeout: 120 * 1000, // Default is 30s, sometimes it is not enough for local tests due to long setup.
8078
expect: {
8179
toHaveScreenshot: {
8280
maxDiffPixelRatio:

tests/e2e/playwright.performance.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ export default defineConfig( {
5050
video: 'on-first-retry',
5151
viewport: { width: 1280, height: 720 },
5252
},
53-
// Global timeout for each action (click, fill, etc.)
54-
timeout: process.env.CI ? 60000 : 30000,
55-
53+
timeout: 120 * 1000, // Default is 30s, sometimes it is not enough for local tests due to long setup.
5654
expect: {
5755
toHaveScreenshot: {
5856
maxDiffPixelRatio:

0 commit comments

Comments
 (0)