-
Notifications
You must be signed in to change notification settings - Fork 17
/
codecept.conf.js
49 lines (46 loc) · 1.02 KB
/
codecept.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Set e2e config
process.env.TS_NODE_PROJECT = "./test/e2e/tsconfig.json";
require('ts-node/register')
// Restore config
process.env.TS_NODE_PROJECT = "";
const { setHeadlessWhen } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: './test/e2e/**/*.e2e.ts',
output: './test/e2e/log',
helpers: {
Playwright: {
url: 'http://localhost:6005',
show: true,
browser: 'chromium'
},
StorybookHelper: {
require: './test/e2e/helper/StorybookHelper'
},
HTMLHelper: {
require: './test/e2e/helper/HTMLHelper'
},
},
async bootstrap() {
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, 60000);
});
},
mocha: {},
name: 'egjs-flicking',
plugins: {
pauseOnFail: {},
retryFailedStep: {
enabled: true
},
tryTo: {
enabled: true
},
screenshotOnFail: {
enabled: true
}
}
}