generated from e2e-boilerplate/protractor-typescript-ts-node-jasmine-assert
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
46 lines (38 loc) · 807 Bytes
/
protractor.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
const directConnect = true;
const specs = ["spec/*.spec.{js,ts}"];
const framework = "mocha";
const mochaOpts = {
reporter: "dot",
timeout: 50000,
};
const onPrepare = () => {
browser.waitForAngularEnabled(false);
require("ts-node").register({
project: require("path").join(__dirname, "./tsconfig.json")
});
};
const headed = {
directConnect,
specs,
capabilities: {
browserName: "chrome",
},
framework,
mochaOpts,
onPrepare
};
const headless = {
directConnect,
specs,
capabilities: {
browserName: "chrome",
chromeOptions: {
args: ["--headless", "--no-sandbox", "--disable-gpu"],
},
},
framework,
mochaOpts,
onPrepare
};
const config = process.env.GITHUB_ACTIONS ? headless : headed;
exports.config = config;