forked from ismailhabib/custom-protocol-detection
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathprotractor.conf.js
49 lines (48 loc) · 1.11 KB
/
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
47
48
49
let chromedriver = require("chromedriver");
let SpecReporter = require("jasmine-spec-reporter").SpecReporter;
exports.config = {
chromeDriver: chromedriver.path,
framework: "jasmine",
directConnect: true,
getPageTimeout: 60000,
allScriptsTimeout: 120000,
rootElement: "",
specs: ["tests/**/*.spec.js"],
baseUrl: "http://localhost:9999",
multiCapabilities: [
{
browserName: "chrome",
chromeOptions: {
args: [],
prefs: {
custom_handlers: {
enabled: true,
registered_protocol_handlers: [
{
default: true,
protocol: "mailto",
title: "Gmail",
url: "#"
}
]
}
}
}
}
],
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 60000,
print: function() {}
},
onPrepare: function() {
jasmine.getEnv().addReporter(
new SpecReporter({
displayFailuresSummary: true,
displayFailuredSpec: true,
displaySuiteNumber: true,
displaySpecDuration: true
})
);
}
};