Skip to content

Commit e1c1585

Browse files
authored
test: Set actionTimeout to 15 seconds (#1800) (#1801)
- Set `actionTimeout` to 15 seconds - Added `docker-compose.override.yml` to gitignore resolves #1800
1 parent 5558cad commit e1c1585

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

playwright.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/
1317
const 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,

0 commit comments

Comments
 (0)