-
Notifications
You must be signed in to change notification settings - Fork 265
/
protractor.conf.js
49 lines (39 loc) · 1.3 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
const HtmlScreenshotReporter = require("protractor-jasmine2-screenshot-reporter");
const JasmineReporters = require('jasmine-reporters');
exports.config = {
allScriptsTimeout: 20000,
specs: [
'./e2e/account/*.spec.ts',
'./e2e/admin/*.spec.ts',
'./e2e/entities/*.spec.ts',
/* jhipster-needle-add-protractor-tests - JHipster will add protractors tests here */
],
capabilities: {
'browserName': 'chrome',
'phantomjs.binary.path': require('phantomjs-prebuilt').path,
'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG']
},
directConnect: true,
baseUrl: 'http://localhost:9010/',
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 60000
},
beforeLaunch: function() {
require('ts-node').register({
project: ''
});
},
onPrepare: function() {
browser.driver.manage().window().setSize(1280, 1024);
jasmine.getEnv().addReporter(new JasmineReporters.JUnitXmlReporter({
savePath: 'target/reports/e2e',
consolidateAll: false
}));
jasmine.getEnv().addReporter(new HtmlScreenshotReporter({
dest: "target/reports/e2e/screenshots"
}));
},
useAllAngular2AppRoots: true
};