docs: fix duplicate sections (#11874)

This commit is contained in:
Yury Semikhatsky 2022-02-04 13:50:46 -08:00 committed by GitHub
parent e67d212451
commit afc4b505aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -255,6 +255,8 @@ declaration.
Learn more about the execution modes [here](./test-parallel-js.md).
Running tests in parallel:
```js js-flavor=js
// Run all the tests in the file concurrently using parallel workers.
test.describe.configure({ mode: 'parallel' });
@ -269,6 +271,8 @@ test('runs in parallel 1', async ({ page }) => {});
test('runs in parallel 2', async ({ page }) => {});
```
Running tests sequentially:
```js js-flavor=js
// Annotate tests as inter-dependent.
test.describe.configure({ mode: 'serial' });

View File

@ -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).
*
* Running tests in parallel:
*
* ```ts
* // Run all the tests in the file concurrently using parallel workers.
* 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 }) => {});
* ```
*
* Running tests sequentially:
*
* ```ts
* // Annotate tests as inter-dependent.
* test.describe.configure({ mode: 'serial' });