-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
49 lines (45 loc) · 963 Bytes
/
wdio.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
const headed = {
runner: "local",
path: "/",
specs: ["./features/*.feature"],
capabilities: [
{
browserName: "chrome",
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "cucumber",
reporters: ["dot"],
mochaOpts: {},
jasmineNodeOpts: {},
cucumberOpts: {
require: ["./features/step_definitions/stepdefs.js"],
timeout: 60000,
},
};
const headless = {
runner: "local",
path: "/",
specs: ["./features/*.feature"],
capabilities: [
{
browserName: "chrome",
"goog:chromeOptions": {
args: ["--headless", "--disable-gpu"]
},
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "cucumber",
reporters: ["dot"],
mochaOpts: {},
jasmineNodeOpts: {},
cucumberOpts: {
require: ["./features/step_definitions/stepdefs.js"],
timeout: 60000,
},
};
const config = process.env.GITHUB_ACTIONS ? headless : headed;
exports.config = config;