opt-cc/static/protractor.conf.js

31 lines
754 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-05-21 02:16:09 +02:00
const { SpecReporter } = require('jasmine-spec-reporter');
2017-05-21 01:26:14 +02:00
2017-05-21 02:16:09 +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,
print: function() {}
},
beforeLaunch: function() {
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() {
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
2017-05-21 01:26:14 +02:00
}
};