-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcodecept.conf.js
50 lines (48 loc) · 1.35 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
var RELATIVE_PATH = './test/acceptance';
var OUTPUT_PATH = RELATIVE_PATH + '/report';
var HOST = 'https://cybersource08-tech-prtnr-na07-dw.demandware.net/';
var webDriver = {
url: HOST,
browser: 'chrome',
smartWait: 10000,
waitForTimeout: 10000,
timeouts: {
script: 60000,
'page load': 10000
}
};
exports.config = {
output: OUTPUT_PATH,
helpers: {
WebDriver: webDriver
},
plugins: {
wdio: {
enabled: true,
services: ['selenium-standalone']
},
allure: {
enabled: true
},
retryFailedStep: {
enabled: true,
retries: 5
}
},
include: {
homePage: RELATIVE_PATH + '/pages/HomePage.js',
productPage: RELATIVE_PATH + '/pages/ProductPage.js',
cartPage: RELATIVE_PATH + '/pages/CartPage.js',
uriUtils: RELATIVE_PATH + '/utils/uriUtils.js'
},
gherkin: {
features: RELATIVE_PATH + '/features/**/*.feature',
steps: [
RELATIVE_PATH + '/features/steps/land_home_page.steps.js',
RELATIVE_PATH + '/features/steps/add_product_to_cart.steps.js',
RELATIVE_PATH + '/features/steps/simple_product_details.steps.js'
]
},
tests: RELATIVE_PATH + '/tests/**/*.test.js',
name: 'storefront-reference-architecture'
};