Skip to content

Commit 8652c96

Browse files
chore: update Playwright config to deal with flaky tests
1 parent 74370fe commit 8652c96

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

playwright.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ import { defineConfig } from '@playwright/test';
22

33
export default defineConfig({
44
webServer: {
5-
command: 'npm run build && npm run preview',
5+
command: 'pnpm build && pnpm preview',
66
port: 4173,
77
},
88
testDir: 'e2e',
9+
timeout: 60 * 1000,
10+
expect: {
11+
timeout: 10 * 1000,
12+
},
13+
retries: 2,
14+
use: {
15+
trace: 'on-first-retry',
16+
},
917
});

0 commit comments

Comments
 (0)