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' });