mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: fix duplicate sections (#11874)
This commit is contained in:
parent
e67d212451
commit
afc4b505aa
@ -255,6 +255,8 @@ declaration.
|
|||||||
|
|
||||||
Learn more about the execution modes [here](./test-parallel-js.md).
|
Learn more about the execution modes [here](./test-parallel-js.md).
|
||||||
|
|
||||||
|
Running tests in parallel:
|
||||||
|
|
||||||
```js js-flavor=js
|
```js js-flavor=js
|
||||||
// Run all the tests in the file concurrently using parallel workers.
|
// Run all the tests in the file concurrently using parallel workers.
|
||||||
test.describe.configure({ mode: 'parallel' });
|
test.describe.configure({ mode: 'parallel' });
|
||||||
@ -269,6 +271,8 @@ test('runs in parallel 1', async ({ page }) => {});
|
|||||||
test('runs in parallel 2', async ({ page }) => {});
|
test('runs in parallel 2', async ({ page }) => {});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Running tests sequentially:
|
||||||
|
|
||||||
```js js-flavor=js
|
```js js-flavor=js
|
||||||
// Annotate tests as inter-dependent.
|
// Annotate tests as inter-dependent.
|
||||||
test.describe.configure({ mode: 'serial' });
|
test.describe.configure({ mode: 'serial' });
|
||||||
|
4
packages/playwright-test/types/test.d.ts
vendored
4
packages/playwright-test/types/test.d.ts
vendored
@ -1719,6 +1719,8 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue
|
|||||||
*
|
*
|
||||||
* Learn more about the execution modes [here](https://playwright.dev/docs/test-parallel-js).
|
* Learn more about the execution modes [here](https://playwright.dev/docs/test-parallel-js).
|
||||||
*
|
*
|
||||||
|
* Running tests in parallel:
|
||||||
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* // Run all the tests in the file concurrently using parallel workers.
|
* // Run all the tests in the file concurrently using parallel workers.
|
||||||
* test.describe.configure({ mode: 'parallel' });
|
* test.describe.configure({ mode: 'parallel' });
|
||||||
@ -1726,6 +1728,8 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue
|
|||||||
* test('runs in parallel 2', async ({ page }) => {});
|
* test('runs in parallel 2', async ({ page }) => {});
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
* Running tests sequentially:
|
||||||
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* // Annotate tests as inter-dependent.
|
* // Annotate tests as inter-dependent.
|
||||||
* test.describe.configure({ mode: 'serial' });
|
* test.describe.configure({ mode: 'serial' });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user