diff --git a/docs/src/test-api/class-test.md b/docs/src/test-api/class-test.md index 5b4ea02026..df33e24f64 100644 --- a/docs/src/test-api/class-test.md +++ b/docs/src/test-api/class-test.md @@ -253,7 +253,7 @@ A callback that is run immediately when calling [`method: Test.describe`]. Any t Set execution mode of execution for the enclosing scope. Can be executed either on the top level or inside a describe. Configuration applies to the entire scope, regardless of whether it run before or after the test declaration. -Learn more about the execution modes [here](./test-parallel-js.md). +Learn more about the execution modes [here](./test-parallel.md). Running tests in parallel: diff --git a/docs/src/test-timeouts-js.md b/docs/src/test-timeouts-js.md index 6da75c9b9c..4a397a1ca3 100644 --- a/docs/src/test-timeouts-js.md +++ b/docs/src/test-timeouts-js.md @@ -11,11 +11,11 @@ Playwright Test has multiple configurable timeouts for various tasks. |Timeout |Default |Description | |:----------|:----------------|:--------------------------------| -|Test timeout|30000 ms|Timeout for each test, includes test, hooks and fixtures:
Set default
{`config = { timeout: 60000 }`}
Override
```test.setTimeout(120000)``` | -|Expect timeout|5000 ms|Timeout for each assertion:
Set default
```config = { expect: { timeout: 10000 } }```
Override
```expect(locator).toBeVisible({ timeout: 10000 })```| -|Action timeout| no timeout |Timeout for each action:
Set default
```config = { use: { actionTimeout: 10000 } }```
Override
```locator.click({ timeout: 10000 })```| -|Navigation timeout| no timeout |Timeout for each navigation action:
Set default
```config = { use: { navigationTimeout: 30000 } }```
Override
```page.goto('/', { timeout: 30000 })```| -|Global timeout|no timeout |Global timeout for the whole test run:
Set in config
```config = { globalTimeout: 60*60*1000 }```
| +|Test timeout|30000 ms|Timeout for each test, includes test, hooks and fixtures:
Set default
{`config = { timeout: 60000 }`}
Override
{`test.setTimeout(120000)`}` | +|Expect timeout|5000 ms|Timeout for each assertion:
Set default
{`config = { expect: { timeout: 10000 } }`}
Override
{`expect(locator).toBeVisible({ timeout: 10000 })`} | +|Action timeout| no timeout |Timeout for each action:
Set default
{`config = { use: { actionTimeout: 10000 } }`}
Override
{`locator.click({ timeout: 10000 })`}| +|Navigation timeout| no timeout |Timeout for each navigation action:
Set default
{`config = { use: { navigationTimeout: 30000 } }`}
Override
{`page.goto('/', { timeout: 30000 })`}| +|Global timeout|no timeout |Global timeout for the whole test run:
Set in config
{`config = { globalTimeout: 60*60*1000 }`}
| ## Test timeout diff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.ts index ab218514e6..df398388b8 100644 --- a/packages/playwright-test/types/test.d.ts +++ b/packages/playwright-test/types/test.d.ts @@ -1717,7 +1717,7 @@ export interface TestType