commit | author | age
|
1284d6
|
1 |
// Protractor configuration file, see link for more information |
G |
2 |
// https://github.com/angular/protractor/blob/master/lib/config.ts |
|
3 |
|
|
4 |
/*global jasmine */ |
|
5 |
const { SpecReporter } = require('jasmine-spec-reporter'); |
|
6 |
|
|
7 |
exports.config = { |
|
8 |
allScriptsTimeout: 11000, |
|
9 |
specs: [ |
|
10 |
'./e2e/**/*.e2e-spec.ts' |
|
11 |
], |
|
12 |
capabilities: { |
|
13 |
'browserName': 'chrome' |
|
14 |
}, |
|
15 |
directConnect: true, |
|
16 |
baseUrl: 'http://localhost:4200/', |
|
17 |
framework: 'jasmine', |
|
18 |
jasmineNodeOpts: { |
|
19 |
showColors: true, |
|
20 |
defaultTimeoutInterval: 30000, |
|
21 |
print: function() {} |
|
22 |
}, |
|
23 |
beforeLaunch: function() { |
|
24 |
require('ts-node').register({ |
|
25 |
project: 'e2e/tsconfig.e2e.json' |
|
26 |
}); |
|
27 |
}, |
|
28 |
onPrepare() { |
|
29 |
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); |
|
30 |
} |
|
31 |
}; |