Skip to content

Commit

Permalink
stop ignoring protractor files
Browse files Browse the repository at this point in the history
  • Loading branch information
melgish committed Jan 8, 2019
1 parent fb70b81 commit dbb1a40
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map
/e2e/src/*.js
/e2e/src/*.map

# System Files
.DS_Store
Expand Down
10 changes: 10 additions & 0 deletions e2e/protractor-ci.conf.js
Original file line number Diff line number Diff line change
@@ -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;
28 changes: 28 additions & 0 deletions e2e/protractor.conf.js
Original file line number Diff line number Diff line change
@@ -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 } }));
}
};

0 comments on commit dbb1a40

Please sign in to comment.