mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03: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).
|
||||
|
||||
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' });
|
||||
|
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).
|
||||
*
|
||||
* 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' });
|
||||
|
Loading…
Reference in New Issue
Block a user