mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
db36da6b5d
- this sometimes helps when CI is slow, and is the best way to set it globally
23 lines
693 B
JavaScript
23 lines
693 B
JavaScript
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
|
|
const config = {
|
|
timeout: 60 * 1000,
|
|
expect: {
|
|
timeout: 10000
|
|
},
|
|
workers: 1,
|
|
reporter: [['list', {printSteps: true}]],
|
|
use: {
|
|
// Use a single browser since we can't simultaneously test multiple browsers
|
|
browserName: 'chromium',
|
|
headless: !process.env.PLAYWRIGHT_DEBUG,
|
|
baseURL: process.env.TEST_URL ?? 'http://localhost:2369',
|
|
// TODO: Where to put this
|
|
storageState: 'playwright-state.json'
|
|
},
|
|
globalSetup: './test/e2e-browser/utils/global-setup',
|
|
globalTeardown: './test/e2e-browser/utils/global-teardown'
|
|
};
|
|
|
|
module.exports = config;
|