-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
46 lines (42 loc) · 1.45 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
const {SpecReporter} = require('jasmine-spec-reporter');
let HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: ['./tests/e2e/litecart-login-spec.js', './tests/angularHomePage/angular-spec.js'],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function () {
}
},
onPrepare: function () {
browser.waitForAngularEnabled(false);
browser.driver.manage().window().maximize();
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'tmp/screenshots'
}).getJasmine2Reporter());
// let faiFast = require('jasmine-fail-fast');
// jasmine.getEnv().addReporter(faiFast.init());
jasmine.getEnv().addReporter(
new SpecReporter({
suite: {
displayNumber: true, // display each suite number (hierarchical)
},
spec: {
displayPending: true, // display each pending spec
displayDuration: true, // display each spec duration
},
summary: {
displaySuccesses: true, // display summary of all successes after execution
displayFailed: true, // display summary of all failures after execution
displayPending: true, // display summary of all pending specs after execution
},
}));
}
};