-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wdio.conf.js
47 lines (44 loc) · 878 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
require("ts-node").register({ files: true });
const headed = {
runner: "local",
path: "/",
specs: ["./spec/*.spec.ts"],
capabilities: [
{
browserName: "chrome",
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "mocha",
reporters: ["dot"],
mochaOpts: {
timeout: 60000,
},
jasmineNodeOpts: {},
cucumberOpts: {},
};
const headless = {
runner: "local",
path: "/",
specs: ["./spec/*.spec.ts"],
capabilities: [
{
browserName: "chrome",
"goog:chromeOptions": {
args: ["--headless", "--disable-gpu"]
},
},
],
logLevel: "silent",
services: ["chromedriver"],
framework: "mocha",
reporters: ["dot"],
mochaOpts: {
timeout: 60000,
},
jasmineNodeOpts: {},
cucumberOpts: {},
};
const config = process.env.GITHUB_ACTIONS ? headless : headed;
exports.config = config;