opt-cc/static/protractor.conf.js

32 lines
756 B
JavaScript
Raw Normal View History

2017-05-21 01:26:14 +02:00
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
2017-09-03 12:49:59 +02:00
const {SpecReporter} = require('jasmine-spec-reporter');
2017-05-21 01:26:14 +02:00
2017-09-03 12:49:59 +02:00
exports.config = {
2017-05-21 01:26:14 +02:00
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:3001',
2017-05-21 01:26:14 +02:00
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
2017-09-03 12:49:59 +02:00
print: function () {
}
2017-05-21 01:26:14 +02:00
},
2017-09-03 12:49:59 +02:00
beforeLaunch: function () {
2017-05-21 01:26:14 +02:00
require('ts-node').register({
2017-05-21 02:16:09 +02:00
project: 'e2e/tsconfig.e2e.json'
2017-05-21 01:26:14 +02:00
});
},
2017-05-21 02:16:09 +02:00
onPrepare() {
2017-09-03 12:49:59 +02:00
jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}}));
2017-05-21 01:26:14 +02:00
}
};