forked from segmentio/analytics.js-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
codecept.conf.js
45 lines (43 loc) · 1.01 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
const { setHeadlessWhen } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// HEADLESS=true npx codecept run
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: './test-e2e/**/*.codecept.js',
output: './test-e2e/output',
helpers: {
Puppeteer: {
url: 'http://www.library-test-site.com/',
show: false,
windowSize: '1200x900',
args: ['--disable-web-security']
},
MockRequestHelper: {
require: '@codeceptjs/mock-request',
mode: 'record',
recordIfMissing: true,
recordFailedRequests: false,
expiresIn: null,
persisterOptions: {
keepUnusedRequests: false,
fs: {
recordingsDir: './test-e2e/output'
}
}
}
},
include: {
I: './test-e2e/steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'analytics.js-core',
plugins: {
retryFailedStep: {
enabled: true
},
screenshotOnFail: {
enabled: true
}
}
};