-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotractor.conf.js
executable file
·47 lines (38 loc) · 1.38 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
'use strict';
//if (process.env.TRAVIS) {
// config.sauceUser = process.env.SAUCE_USERNAME;
// config.sauceKey = process.env.SAUCE_ACCESS_KEY;
// config.capabilities = {
// 'browserName': 'chrome',
// 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
// 'build': process.env.TRAVIS_BUILD_NUMBER
// };
// }
var paths = require('./.yo-rc.json')['generator-gulp-angular'].props.paths;
var ProtractorReporter = require('protractor-html-screenshot-reporter');
// An example configuration file.
exports.config = {
// The address of a running selenium server.
// seleniumAddress: 'http://localhost:4444/wd/hub',
//seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// onPrepare: function () {
// jasmine.getEnv().addReporter(new ProtractorReporter({
// baseDirectory: paths.e2e + '/screenshots'
// }))
// },
// resultJsonOutputFile: 'dist/reports/ui-e2e/ui-e2e-results.json',
baseUrl: 'http://localhost:3004',
// Spec patterns are relative to the current working directory when
// protractor is called.
// specs: [paths.e2e + '/**/*.js', 'e2e/main.spec.js'],
specs: ['e2e/main.spec.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: false,
defaultTimeoutInterval: 30000
}
};