2019-04-25 11:06:40 -04:00
|
|
|
// @ts-check
|
2017-01-27 03:20:51 -05:00
|
|
|
// Protractor configuration file, see link for more information
|
|
|
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
|
|
|
2017-02-20 22:05:40 -05:00
|
|
|
const { SpecReporter } = require('jasmine-spec-reporter');
|
2017-01-27 03:20:51 -05:00
|
|
|
|
2019-04-25 11:06:40 -04:00
|
|
|
/**
|
|
|
|
* @type { import("protractor").Config }
|
|
|
|
*/
|
2017-01-27 03:20:51 -05:00
|
|
|
exports.config = {
|
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
specs: [
|
2019-04-25 11:06:40 -04:00
|
|
|
'./src/**/*.e2e-spec.ts'
|
2017-01-27 03:20:51 -05:00
|
|
|
],
|
|
|
|
capabilities: {
|
2017-02-03 10:44:34 -05:00
|
|
|
browserName: 'chrome',
|
2020-02-13 09:46:38 -05:00
|
|
|
chromeOptions: {
|
2020-02-07 06:38:58 -05:00
|
|
|
binary: require('puppeteer').executablePath(),
|
|
|
|
// See /integration/README.md#browser-tests for more info on these args
|
2020-02-13 09:46:38 -05:00
|
|
|
args: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-dev-shm-usage', '--hide-scrollbars', '--mute-audio'],
|
|
|
|
},
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
|
|
|
directConnect: true,
|
|
|
|
baseUrl: 'http://localhost:4200/',
|
2017-02-03 10:44:34 -05:00
|
|
|
framework: 'jasmine',
|
2017-01-27 03:20:51 -05:00
|
|
|
jasmineNodeOpts: {
|
|
|
|
showColors: true,
|
|
|
|
defaultTimeoutInterval: 30000,
|
|
|
|
print: function() {}
|
|
|
|
},
|
2019-04-25 11:06:40 -04:00
|
|
|
onPrepare() {
|
2017-01-27 03:20:51 -05:00
|
|
|
require('ts-node').register({
|
2019-04-25 11:06:40 -04:00
|
|
|
project: require('path').join(__dirname, './tsconfig.json')
|
2017-01-27 03:20:51 -05:00
|
|
|
});
|
2017-02-20 22:05:40 -05:00
|
|
|
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
2017-01-27 03:20:51 -05:00
|
|
|
}
|
|
|
|
};
|