From 3777fc8b0fa1e3380279b4d5ceb2d9c0f3529698 Mon Sep 17 00:00:00 2001 From: awatson-scottlogic <51915842+awatson-scottlogic@users.noreply.github.com> Date: Wed, 21 Jun 2023 13:03:26 +0100 Subject: [PATCH] docs(class-testoptions): fix launchOptions snippet (#23831) --- docs/src/test-api/class-testoptions.md | 10 ++++++---- packages/playwright-test/types/test.d.ts | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/src/test-api/class-testoptions.md b/docs/src/test-api/class-testoptions.md index 6ce6ad75e3..d812be7cf1 100644 --- a/docs/src/test-api/class-testoptions.md +++ b/docs/src/test-api/class-testoptions.md @@ -355,10 +355,12 @@ export default defineConfig({ projects: [ { name: 'chromium', - use: { ...devices['Desktop Chrome'] }, - launchOptions: { - args: ['--start-maximized'], - }, + use: { + ...devices['Desktop Chrome'], + launchOptions: { + args: ['--start-maximized'] + } + } } ] }); diff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.ts index 791809b5bc..71f8f55e5d 100644 --- a/packages/playwright-test/types/test.d.ts +++ b/packages/playwright-test/types/test.d.ts @@ -3518,10 +3518,12 @@ export interface PlaywrightWorkerOptions { * projects: [ * { * name: 'chromium', - * use: { ...devices['Desktop Chrome'] }, - * launchOptions: { - * args: ['--start-maximized'], - * }, + * use: { + * ...devices['Desktop Chrome'], + * launchOptions: { + * args: ['--start-maximized'] + * } + * } * } * ] * });