-
Notifications
You must be signed in to change notification settings - Fork 2
/
codecept.conf.js
53 lines (50 loc) · 1.24 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
const { setHeadlessWhen, setCommonPlugins } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins
setCommonPlugins();
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
Playwright: {
url: 'http://localhost',
show: true,
browser: 'chromium',
waitForNavigation: 'networkidle0',
waitForTimeout: 10000,
timeout: 10000,
windowSize: '1900x1000',
video: false,
},
Generator: {
require: './helpers/generator_helper.js',
},
ChaiWrapper: {
require: 'codeceptjs-chai'
},
REST: {
defaultHeaders: {
'Content-Type': 'application/json',
'Accept': 'application/json',
},
},
JSONResponse: {},
},
include: {
I: './steps_file.js',
homePage: './pages/home.js',
authPage: './pages/auth.js',
createAccountPage: './pages/createAccount.js',
userData: './data/user.js',
},
bootstrap: null,
mocha: {},
name: 'JS_Courses',
plugins: {
tryTo: {
enabled: true
}
}
}