This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 389
/
codecept.conf.js
55 lines (54 loc) · 1.74 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
let CODECEPT_WORK_PATH = './e2e';
exports.config = {
output: CODECEPT_WORK_PATH + '/output',
helpers: process.profile === 'android' || process.profile === 'ios' ? {
Appium: {
smartWait: 35000,
app: process.profile === 'android' ? './android/app/build/outputs/apk/app-debug.apk' : './ios/build/Build/Products/Release-iphonesimulator/e2etest.app',
platform: process.profile === 'android' ? 'Android' : 'iOS',
desiredCapabilities: {
platformVersion: process.profile === 'ios' ? '10.3' : undefined,
deviceName: process.profile === 'ios' ? 'iPhone Simulator' : 'Android Emulator'
}
}
} : {
WebDriverIO: {
url: 'http://localhost:3000',
browser: 'chrome'
}
},
multiple: {
android: {
browsers: ['firefox']
},
basic: {
browsers: ['chrome', 'firefox']
},
smoke: {
grep: '@smoke',
browsers: [
'firefox', {
browser: 'chrome',
windowSize: 'maximize'
}, {
browser: 'chrome',
windowSize: '1200x840'
}
]
}
},
include: {
I: CODECEPT_WORK_PATH + '/custom_steps.js',
initStep: CODECEPT_WORK_PATH + '/steps/init.js',
AlertFragment: CODECEPT_WORK_PATH + '/fragments/Alert.js',
generalPage: CODECEPT_WORK_PATH + '/pages/general.js',
HomePage: CODECEPT_WORK_PATH + '/pages/Home.js'
},
mocha: {},
bootstrap: false,
teardown: null,
hooks: [],
tests: CODECEPT_WORK_PATH + '/tests/*.js',
timeout: 10000,
name: 'Noder'
};