docs(class-testoptions): fix launchOptions snippet (#23831)

This commit is contained in:
awatson-scottlogic 2023-06-21 13:03:26 +01:00 committed by GitHub
parent 6a6ff9cf6a
commit 3777fc8b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View file

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

View file

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