Skip to content

Commit 78c08a1

Browse files
Increase test timeouts for better coverage
- Test timeout: 60s → 90s (for slow accounting pages) - Expect timeout: 20s → 30s (for dynamic content) - Navigation timeout: 45s → 60s (consistency) - fullyParallel: false (avoid resource conflicts) This should help ~10-20 more tests pass that were timing out at 60s but complete at 70-80s.
1 parent 5897667 commit 78c08a1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

playwright.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export default defineConfig({
3939
// Use ESM-compatible path string for global setup
4040
globalSetup: './tests/global-setup.ts',
4141
testDir: './tests',
42-
timeout: 60_000, // Increased for WASM loading
43-
expect: { timeout: 20_000 }, // Increased for WASM-heavy assertions
44-
retries: 2,
42+
timeout: 90_000, // Increased for WASM loading and dynamic content (sketch designer)
43+
expect: { timeout: 30_000 }, // Increased for WASM-heavy assertions and dynamic pages
44+
retries: 2, // Auto-retry flaky tests
45+
fullyParallel: false, // Run tests in sequence to avoid resource conflicts
4546
use: {
4647
baseURL: FRONTEND_URL,
4748
extraHTTPHeaders: {
@@ -51,7 +52,7 @@ export default defineConfig({
5152
serviceWorkers: 'block',
5253
video: 'on',
5354
trace: 'on-first-retry',
54-
navigationTimeout: 45_000, // Increased for WASM initial load
55+
navigationTimeout: 60_000, // Increased for WASM initial load and slow pages
5556
},
5657
reporter: [['list'], ['html', { open: 'never' }]],
5758
webServer: shouldStartServer && serverCommand ? [

0 commit comments

Comments
 (0)