2020-03-30 13:40:22 +00:00
|
|
|
// @ts-check
|
2018-11-27 09:06:26 +00:00
|
|
|
// Protractor configuration file, see link for more information
|
|
|
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
|
|
|
|
|
|
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
|
|
|
2020-03-30 13:40:22 +00:00
|
|
|
/**
|
|
|
|
* @type { import("protractor").Config }
|
|
|
|
*/
|
2018-11-27 09:06:26 +00:00
|
|
|
exports.config = {
|
2018-11-30 13:26:03 +00:00
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
specs: ['./src/**/*.e2e-spec.ts'],
|
|
|
|
capabilities: {
|
2020-05-19 12:50:28 +00:00
|
|
|
browserName: 'chrome',
|
2018-11-30 13:26:03 +00:00
|
|
|
},
|
|
|
|
directConnect: true,
|
|
|
|
baseUrl: 'http://localhost:4200/',
|
|
|
|
framework: 'jasmine',
|
|
|
|
jasmineNodeOpts: {
|
|
|
|
showColors: true,
|
|
|
|
defaultTimeoutInterval: 30000,
|
2020-05-19 12:50:28 +00:00
|
|
|
print: function () {},
|
2018-11-30 13:26:03 +00:00
|
|
|
},
|
|
|
|
onPrepare() {
|
|
|
|
require('ts-node').register({
|
2020-05-19 12:50:28 +00:00
|
|
|
project: require('path').join(__dirname, './tsconfig.json'),
|
2018-11-30 13:26:03 +00:00
|
|
|
});
|
|
|
|
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
2020-05-19 12:50:28 +00:00
|
|
|
},
|
2018-11-30 13:26:03 +00:00
|
|
|
};
|