test: update test configs
This commit is contained in:
parent
11a659e540
commit
c6954bad16
@ -4,14 +4,20 @@ const CI = process.env.CI === 'true';
|
||||
const DEBUG_MODE = process.env.DEBUG_MODE === 'true';
|
||||
|
||||
const config = {
|
||||
workers: 1,
|
||||
workers: 2,
|
||||
timeout: 3 * 60 * 1000,
|
||||
reporter: [
|
||||
[CI ? 'github' : 'list'],
|
||||
['html', { open: 'never' }],
|
||||
],
|
||||
forbidOnly: CI,
|
||||
use: {
|
||||
headless: true,
|
||||
trace: DEBUG_MODE ? 'on'
|
||||
: CI ? 'retain-on-failure'
|
||||
: 'off',
|
||||
screenshot: 'on',
|
||||
video: 'on',
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
@ -58,9 +64,4 @@ const config = {
|
||||
|
||||
if (CI) config.retries = 1;
|
||||
|
||||
if (CI || DEBUG_MODE) {
|
||||
config.use.screenshot = 'only-on-failure';
|
||||
config.use.trace = 'retain-on-failure';
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
Loading…
Reference in New Issue
Block a user