Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 991102a

Browse files
committed
fix(playwright.config.js): add timeout
1 parent dc0e558 commit 991102a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

playwright.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default defineConfig({
77
port: 4000,
88
},
99
testDir: './e2e',
10+
/* Maximum time one test can run for. */
11+
timeout: 10 * 1000,
1012
/* Run tests in files in parallel */
1113
fullyParallel: true,
1214
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -22,7 +24,7 @@ export default defineConfig({
2224
/* Base URL to use in actions like `await page.goto('/')`. */
2325
baseURL: 'http://localhost:4000',
2426
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
25-
trace: 'on-first-retry',
27+
trace: process.env.CI ? 'on-first-retry' : 'on',
2628
},
2729

2830
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)