Repository navigation
Expand file tree
/
Copy pathprotractor.conf.js
More file actions
72 lines (62 loc) · 2.1 KB
/
Copy pathprotractor.conf.js
File metadata and controls
72 lines (62 loc) · 2.1 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*-
* #%L
* Proms Platform
* %%
* Copyright (C) 2017 - 2018 Termlex
* %%
* This software is Copyright and Intellectual Property of Termlex Inc Limited.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation as version 3 of the
* License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see
* <https://www.gnu.org/licenses/agpl-3.0.en.html>.
* #L%
*/
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:8080/',
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 720000
},
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
};