diff --git a/internals/playwright-config/src/index.js b/internals/playwright-config/src/index.js index ccd396dd4..e527d58f1 100644 --- a/internals/playwright-config/src/index.js +++ b/internals/playwright-config/src/index.js @@ -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: [