generated from e2e-boilerplate/webdriverio-commonjs-jasmine-expect
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
47 lines (43 loc) · 867 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
const headed = {
runner: "local",
path: "/",
specs: ["./spec/*.spec.js"],
capabilities: [
{
browserName: "chrome",
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "jasmine",
reporters: ["dot"],
mochaOpts: {},
jasmineNodeOpts: {
defaultTimeoutInterval: 60000,
},
cucumberOpts: {},
};
const headless = {
runner: "local",
path: "/",
specs: ["./spec/*.spec.js"],
capabilities: [
{
browserName: "chrome",
"goog:chromeOptions": {
args: ["--headless", "--disable-gpu"]
},
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "jasmine",
reporters: ["dot"],
mochaOpts: {},
jasmineNodeOpts: {
defaultTimeoutInterval: 60000,
},
cucumberOpts: {},
};
const config = process.env.GITHUB_ACTIONS ? headless : headed;
exports.config = config;