6ef5e6a7e0
refs https://github.com/TryGhost/Toolbox/issues/479 - this includes a handful of improvements to get Playwright working on a local environment including: - adding `testing-browser` environment so we don't nuke `development` environments, and makes all the necessary changes to get Ghost to behave when this is running - stopped running one global instance of Ghost as this doesn't provide a clean environment - copies a few default fixtures that are needed for the new environment
19 lines
603 B
JavaScript
19 lines
603 B
JavaScript
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
|
|
const config = {
|
|
timeout: 60 * 1000,
|
|
workers: 1,
|
|
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;
|