-
Notifications
You must be signed in to change notification settings - Fork 13
/
protractor.conf.js
48 lines (36 loc) · 1.19 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
exports.config = {
baseUrl: 'http://localhost:8080/',
/*
* Set to direct connect if tests are run locally (only Chrome / Firefox)
*/
// directConnect: true,
/*
* Set seleniumAddress to phantomJS Ghost instance
* Usage: node node_modules/phantomjs/bin/phantomjs --webdriver=4444
*/
seleniumAddress: 'http://localhost:4444',
/*
* Set seleniumAddress to webdriver-manager default when using other browsers
* Usage: webdriver-manager start
*/
// seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [
'./app/src/**/*.spec.e2e.js'
],
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true
},
capabilities: {
// browserName: 'chrome'
'browserName': 'phantomjs',
'phantomjs.binary.path': './node_modules/phantomjs/bin/phantomjs',
'phantomjs.cli.args': ['--logfile=PATH', '--loglevel=DEBUG']
},
onPrepare: function() {
const SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({ displayStacktrace: 'all' }));
browser.ignoreSynchronization = false;
},
useAllAngular2AppRoots: true
};