-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodecept.conf.js
43 lines (40 loc) · 946 Bytes
/
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
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();
/** @type {CodeceptJS.MainConfig} */
exports.config = {
tests: './e2e/*_test.js',
output: './output',
helpers: {
Playwright: {
url: 'http://localhost:8080',
show: true,
browser: 'chromium',
},
REST: {
endpoint: 'http://localhost:3333',
},
JSONResponse: {
requestHelper: 'REST'
},
Mochawesome: {
uniqueScreenshotNames: true
}
},
include: {
I: './support/steps_file.js',
tasksPage: "./pages/tasks.js",
},
mocha: {
reporterOptions: {
reportDir: "output"
}
},
name: 'codecept-express'
}