-
Notifications
You must be signed in to change notification settings - Fork 10
/
codecept.conf.js
119 lines (119 loc) · 3.68 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
exports.config = {
tests: process.env.CCD_UI_TESTS === 'true' ? [
'./e2e/tests/ui_tests/*.js',
'./e2e/tests/ui_tests/damages/*_test.js',
'./e2e/tests/ui_tests/lrspec/*_test.js',
'./e2e/tests/ui_tests/damages/nightly/*_test.js',
'./e2e/tests/ui_tests/noticeofchange/*_test.js',
'./e2e/tests/ui_tests/manageContactInformation/*_test.js',
'./e2e/tests/ui_tests/settle_discontinue/*_test.js',
'./e2e/tests/ui_tests/sdo/*_test.js',
'./e2e/tests/ui_tests/carm/*_test.js',
'./e2e/tests/ui_tests/minti/*_test.js',
'./e2e/tests/ui_tests/refunds/*_test.js',
'./e2e/tests/ui_tests/default_judgement/*_test.js',
'./e2e/tests/ui_tests/hearings/*_test.js',
'./e2e/tests/api_tests/lrspec_cui/*_test.js',
] : [
'./e2e/tests/api_tests/*.js',
'./e2e/tests/api_tests/judgmentOnline/*_test.js',
'./e2e/tests/api_tests/mediation/*_test.js',
'./e2e/tests/api_tests/sdo_R2/*_test.js',
'./e2e/tests/api_tests/generalapplication/*_test.js',
'./e2e/tests/api_tests/defaultJudgments/*_test.js',
'./e2e/tests/api_tests/damages/*_test.js',
'./e2e/tests/api_tests/sdo/*_test.js',
'./e2e/tests/api_tests/hearings/*_test.js',
'./e2e/tests/api_tests/bulkclaim/*_test.js',
'./e2e/tests/api_tests/lrspec/*_test.js',
'./e2e/tests/api_tests/lrspec_cui/*_test.js',
'./e2e/tests/api_tests/multiIntermediateTrack/*_test.js',
'./e2e/tests/api_tests/settle-discontinue/*_test.js',
'./e2e/tests/api_tests/automated_hearing_notice/*_test.js'
],
output: process.env.REPORT_DIR || 'test-results/functional',
helpers: {
Playwright: {
url: process.env.URL || 'http://localhost:3333',
show: process.env.SHOW_BROWSER_WINDOW === 'true' || false,
waitForTimeout: parseInt(process.env.WAIT_FOR_TIMEOUT_MS || 90000),
windowSize: '1280x960',
browser: 'chromium',
timeout: 20000,
waitForAction: 500,
bypassCSP: true,
ignoreHTTPSErrors: true,
video: true,
contextOptions : {
recordVideo:{
dir:'failed-videos',
},
},
},
BrowserHelpers: {
require: './e2e/helpers/browser_helper.js',
},
GenerateReportHelper: {
require: './e2e/helpers/generate_report_helper.js',
},
},
include: {
I: './e2e/steps_file.js',
LRspec: './e2e/steps_file_LRspec.js',
WA: './e2e/steps_file_WA.js',
api: './e2e/api/steps.js',
api_spec: './e2e/api/steps_LRspec.js',
api_spec_fast: './e2e/api/steps_LRspecFast.js',
api_spec_small: './e2e/api/steps_LRspecSmall.js',
api_spec_cui: './e2e/api/steps_LRspecCui.js',
noc: './e2e/api/steps_noc.js',
hearings: './e2e/api/steps_hearings.js',
bulks: './e2e/api/steps_Bulk.js',
},
plugins: {
autoDelay: {
enabled: true,
methods: [
'click',
'fillField',
'checkOption',
'selectOption',
'attach',
],
},
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: process.env.REPORT_FILE || 'test-results/functional/result.xml',
},
},
'mochawesome': {
stdout: '-',
options: {
reportDir: process.env.REPORT_DIR || 'test-results/functional',
reportFilename: `${process.env.MOCHAWESOME_REPORTFILENAME + '-' + new Date().getTime()}`,
inlineAssets: true,
overwrite: false,
json: false,
},
},
},
},
};