From dbb1a40bb703be3cbef2670bc798222a6c5af2be Mon Sep 17 00:00:00 2001 From: "Nicholas J. Fiorello Jr" Date: Mon, 7 Jan 2019 20:30:17 -0500 Subject: [PATCH] stop ignoring protractor files --- .gitignore | 4 ++-- e2e/protractor-ci.conf.js | 10 ++++++++++ e2e/protractor.conf.js | 28 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 e2e/protractor-ci.conf.js create mode 100644 e2e/protractor.conf.js diff --git a/.gitignore b/.gitignore index 09e41ae..3c24235 100644 --- a/.gitignore +++ b/.gitignore @@ -35,8 +35,8 @@ testem.log /typings # e2e -/e2e/*.js -/e2e/*.map +/e2e/src/*.js +/e2e/src/*.map # System Files .DS_Store diff --git a/e2e/protractor-ci.conf.js b/e2e/protractor-ci.conf.js new file mode 100644 index 0000000..39393cf --- /dev/null +++ b/e2e/protractor-ci.conf.js @@ -0,0 +1,10 @@ +const config = require('./protractor.conf').config; + +config.capabilities = { + browserName: 'chrome', + chromeOptions: { + args: ['--headless', '--disable-gpu', '--no-sandbox', '--window-size=800x600'] + } +}; + +exports.config = config; diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js new file mode 100644 index 0000000..ba8afa4 --- /dev/null +++ b/e2e/protractor.conf.js @@ -0,0 +1,28 @@ +// Protractor configuration file, see link for more information +// https://github.com/angular/protractor/blob/master/lib/config.ts + +const { SpecReporter } = require('jasmine-spec-reporter'); + +exports.config = { + allScriptsTimeout: 11000, + specs: [ + './e2e/**/*.e2e-spec.ts' + ], + capabilities: { + 'browserName': 'chrome' + }, + directConnect: true, + baseUrl: 'http://localhost:4200/', + framework: 'jasmine', + jasmineNodeOpts: { + showColors: true, + defaultTimeoutInterval: 30000, + print: function() {} + }, + onPrepare() { + require('ts-node').register({ + project: './tsconfig.e2e.json' + }); + jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); + } +};