forked from hmcts/civil-ccd-definition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodecept.conf.js
70 lines (70 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
exports.config = {
tests: './e2e/tests/*_test.js',
output: './output',
helpers: {
Puppeteer: {
restart: false,
keepCookies: true,
show: process.env.SHOW_BROWSER_WINDOW === 'true' || false,
windowSize: '1200x900',
waitForTimeout: parseInt(process.env.WAIT_FOR_TIMEOUT_MS || 40000),
chrome: {
ignoreHTTPSErrors: true
},
},
BrowserHelpers: {
require: './e2e/helpers/browser_helper.js',
},
GenerateReportHelper: {
require: './e2e/helpers/generate_report_helper.js'
},
},
include: {
I: './e2e/steps_file.js',
api: './e2e/api/steps.js'
},
plugins: {
autoDelay: {
enabled: true,
methods: [
'click',
'fillField',
'checkOption',
'selectOption',
'attachFile',
],
},
retryFailedStep: {
enabled: true,
},
screenshotOnFail: {
enabled: true,
fullPageScreenshots: true,
},
},
mocha: {
bail: true,
reporterOptions: {
'codeceptjs-cli-reporter': {
stdout: '-',
options: {
steps: false,
},
},
'mocha-junit-reporter': {
stdout: '-',
options: {
mochaFile: 'test-results/result.xml',
},
},
'mochawesome': {
stdout: '-',
options: {
reportDir: './output',
inlineAssets: true,
json: false,
},
},
}
}
};