Ghost/ghost/core/playwright.config.js
Sam Lord f6870fa846 Added browser-based testing framework
refs: https://github.com/TryGhost/Toolbox/issues/479

Framework includes:
* command to run tests
* command to record tests
* mechanism for starting and stopping Ghost before and after each suite of tests
* mechanism for loading fixtures into Ghost before starting tests
* sample test for controlling Ghost Admin
2022-11-22 14:12:34 +00:00

14 lines
411 B
JavaScript

/** @type {import('@playwright/test').PlaywrightTestConfig} */
const config = {
timeout: 20 * 1000,
workers: 1,
use: {
// Use a single browser since we can't run multiple instances of Ghost simultaneously
// and we can't run tests against a standalone server if we also want to add fixtures
browserName: 'chromium',
headless: false
}
};
module.exports = config;