fix(internals): fix playwright-config syntax bug (#705)
This commit is contained in:
parent
0e6d666aab
commit
da7748a564
|
@ -32,12 +32,15 @@ const Config = ({ testDir, baseURL, storageState }) => ({
|
|||
actionTimeout: 0,
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
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 */
|
||||
trace: 'on-first-retry',
|
||||
|
||||
/* 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: [
|
||||
|
|
Loading…
Reference in New Issue