From afc4b505aa461ed91bc36a55b6780ab4e141f14c Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 4 Feb 2022 13:50:46 -0800 Subject: [PATCH] docs: fix duplicate sections (#11874) --- docs/src/test-api/class-test.md | 4 ++++ packages/playwright-test/types/test.d.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/src/test-api/class-test.md b/docs/src/test-api/class-test.md index 617437e810..5b4ea02026 100644 --- a/docs/src/test-api/class-test.md +++ b/docs/src/test-api/class-test.md @@ -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' }); diff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.ts index 5160660224..ab218514e6 100644 --- a/packages/playwright-test/types/test.d.ts +++ b/packages/playwright-test/types/test.d.ts @@ -1719,6 +1719,8 @@ export interface TestType {}); * ``` * + * Running tests sequentially: + * * ```ts * // Annotate tests as inter-dependent. * test.describe.configure({ mode: 'serial' });