File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,4 +41,5 @@ packages/*/package-lock.json
4141/playwright /.cache /
4242/tests /* -snapshots /*
4343! /tests /* -snapshots /* -linux *
44- vite.config.local.ts
44+ vite.config.local.ts
45+ docker-compose.override.yml
Original file line number Diff line number Diff line change @@ -7,19 +7,23 @@ import { devices } from '@playwright/test';
77 */
88// require('dotenv').config();
99
10+ const TIMEOUT_MS = 120 * 1000 ;
11+ const TIMEOUT_ACTION_MS = 15 * 1000 ;
12+ const TIMEOUT_EXPECT_MS = 15 * 1000 ;
13+
1014/**
1115 * See https://playwright.dev/docs/test-configuration.
1216 */
1317const config : PlaywrightTestConfig = {
1418 testDir : './tests' ,
1519 /* Maximum time one test can run for. */
16- timeout : 120 * 1000 ,
20+ timeout : TIMEOUT_MS ,
1721 expect : {
1822 /**
1923 * Maximum time expect() should wait for the condition to be met.
2024 * For example in `await expect(locator).toHaveText();`
2125 */
22- timeout : 15000 ,
26+ timeout : TIMEOUT_EXPECT_MS ,
2327 } ,
2428 /* Default to run each suite in parallel, suites and optional opt out */
2529 fullyParallel : true ,
@@ -37,7 +41,7 @@ const config: PlaywrightTestConfig = {
3741 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3842 use : {
3943 /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
40- actionTimeout : 0 ,
44+ actionTimeout : TIMEOUT_ACTION_MS ,
4145
4246 /* Navigation timeout for how long it takes to navigate to a page */
4347 navigationTimeout : 60 * 1000 ,
You can’t perform that action at this time.
0 commit comments