2022-11-17 20:00:54 +03:00
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
|
|
const config = {
|
2022-11-24 18:11:40 +03:00
|
|
|
timeout: 60 * 1000,
|
2022-11-22 17:12:27 +03:00
|
|
|
workers: 1,
|
2022-11-17 20:00:54 +03:00
|
|
|
use: {
|
2022-11-24 18:11:40 +03:00
|
|
|
// Use a single browser since we can't simultaneously test multiple browsers
|
2022-11-22 17:12:27 +03:00
|
|
|
browserName: 'chromium',
|
2022-11-24 18:11:40 +03:00
|
|
|
baseURL: 'http://localhost:2368'
|
|
|
|
},
|
|
|
|
webServer: {
|
|
|
|
command: 'yarn start',
|
|
|
|
env: {
|
|
|
|
// TODO: Use `testing` when starting a server
|
|
|
|
NODE_ENV: 'development'
|
|
|
|
},
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
url: 'http://localhost:2368'
|
2022-11-17 20:00:54 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|