7e02568cec
no issue Using multiple workers could cause Stripe to be removed from one test while another test was using it.
27 lines
673 B
JavaScript
27 lines
673 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',
|
|
baseURL: process.env.TEST_URL ?? 'http://localhost:2368',
|
|
headless: false
|
|
}
|
|
};
|
|
|
|
if (!process.env.TEST_URL) {
|
|
config.webServer = {
|
|
command: 'yarn start',
|
|
env: {
|
|
// TODO: Use `testing` when starting a server
|
|
NODE_ENV: 'development'
|
|
},
|
|
reuseExistingServer: !process.env.CI,
|
|
url: 'http://localhost:2368'
|
|
};
|
|
}
|
|
|
|
module.exports = config;
|