Skip to content

Commit aaaca8d

Browse files
committed
Update playwright.config.ts
1 parent fa0374d commit aaaca8d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

playwright.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import { devices } from '@playwright/test';
1212
const config: PlaywrightTestConfig = {
1313
testDir: './src/tests',
1414
/* Maximum time one test can run for. */
15-
timeout: 30 * 1000,
15+
timeout: 60 * 1000, // Increased to 60 seconds
1616
expect: {
1717
/**
1818
* Maximum time expect() should wait for the condition to be met.
1919
* For example in `await expect(locator).toHaveText();`
2020
*/
21-
timeout: 15000,
21+
timeout: 30000, // Increased to 30 seconds
2222
},
2323
/* Run tests in files in parallel */
2424
fullyParallel: true,
@@ -33,7 +33,7 @@ const config: PlaywrightTestConfig = {
3333
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3434
use: {
3535
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
36-
actionTimeout: 0,
36+
actionTimeout: 30000, // Added 30 second timeout for actions
3737
/* Base URL to use in actions like `await page.goto('/')`. */
3838
baseURL: 'http://localhost:3000',
3939

@@ -103,6 +103,7 @@ const config: PlaywrightTestConfig = {
103103
reuseExistingServer: true,
104104
command: 'npm run dev',
105105
port: 3000,
106+
timeout: 120000, // Added 2 minute timeout for server start
106107
},
107108
};
108109

0 commit comments

Comments
 (0)