fix(internals): fix playwright-config syntax bug (#705)

This commit is contained in:
yoyo 2023-11-03 03:16:51 -07:00 committed by GitHub
parent 0e6d666aab
commit da7748a564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -32,12 +32,15 @@ const Config = ({ testDir, baseURL, storageState }) => ({
actionTimeout: 0, actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */ /* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.PYTEST_BASEURL || baseURL, baseURL: process.env.PYTEST_BASEURL || baseURL,
storageState: process.env.PYTEST_STORAGE ? JSON.parse(process.env.PYTEST_STORAGE) : storageState storageState: process.env.PYTEST_STORAGE ? JSON.parse(process.env.PYTEST_STORAGE) : storageState,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry', trace: 'on-first-retry',
/* Only on CI systems run the tests headless */ /* Only on CI systems run the tests headless */
headless: !!process.env.CI headless: !!process.env.CI,
ignoreHTTPSErrors: true,
screenshot: 'only-on-failure',
permissions: ['clipboard-read']
}, },
projects: [ projects: [