-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecept.conf.js
61 lines (58 loc) · 1.33 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
const { setHeadlessWhen } = require("@codeceptjs/configure")
require('ts-node/register')
// turn on headless mode when running with HEADLESS=true environment variable
// HEADLESS=true npx codecept run
setHeadlessWhen(process.env.HEADLESS)
exports.config = {
tests: "./system/e2e/tests/**/*.ts",
output: "./system/e2e/output",
helpers: {
Puppeteer: {
url: `https://home.${process.env.PRIMARY_DOMAIN_NAME}`,
show: !process.env.CI,
getPageTimeout: 80000,
waitForTimeout: 80000,
waitForNavigation: "networkidle0",
windowSize: "1920x1080",
chrome: {
ignoreHTTPSErrors: true,
args: ["--no-sandbox", "--disable-dev-shm-usage"],
...(process.profile === "chrome-ci"
? {
executablePath: "/usr/bin/chromium-browser",
}
: {}),
},
},
},
include: {
I: "./system/e2e/steps_file.js",
homePage: "./system/e2e/pages/home.ts",
settingsPage: "./system/e2e/pages/settings.ts",
createUserStep: "./system/e2e/steps/createUser.js",
},
bootstrap: null,
mocha: {
reporterOptions: {
mochaFile: "./system/e2e/output/result.xml",
},
},
name: "home",
plugins: {
autoDelay: {
enabled: true
},
retryFailedStep: {
enabled: true,
},
screenshotOnFail: {
enabled: true,
},
pauseOnFail: {
enabled: process.profile !== "chrome-ci",
},
stepByStepReport: {
enabled: true
}
},
}