Skip to content

Commit 8039997

Browse files
committed
increased timeouts
1 parent eeb4c77 commit 8039997

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const config: PlaywrightTestConfig = {
1212
timeout: 60000, // 60 second timeout per test
1313
reporter: isInCi ? 'github' : 'line',
1414
expect: {
15-
timeout: 10000, // 10 second timeout for assertions
15+
timeout: isInCi ? 30000 : 10000, // 30 second timeout for assertions in CI, 10 seconds locally
1616
toHaveScreenshot: {
1717
maxDiffPixelRatio: 0.05,
1818
threshold: 0.3,
@@ -21,8 +21,8 @@ const config: PlaywrightTestConfig = {
2121
use: {
2222
trace: 'on-first-retry',
2323
baseURL: 'http://localhost:9090',
24-
actionTimeout: 15000, // 15 second timeout for actions like click, fill, etc.
25-
navigationTimeout: 30000, // 30 second timeout for navigation
24+
actionTimeout: isInCi ? 30000 : 15000, // 30 second timeout for actions like click, fill, etc. in CI, 15 seconds locally
25+
navigationTimeout: isInCi ? 30000 : 15000, // 30 second timeout for navigation in CI, 15 seconds locally
2626
},
2727

2828
projects: [

0 commit comments

Comments
 (0)