Skip to content

Commit

Permalink
fix(e2e): re-add protractor.conf.js, adjust .gitignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Apr 8, 2018
1 parent abc5f90 commit f04f994
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ testem.log
/typings

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

# System Files
.DS_Store
Expand Down
29 changes: 29 additions & 0 deletions e2e/protractor.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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: [
'./src/**/*.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: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
Empty file modified e2e/tsconfig.e2e.json
100755 → 100644
Empty file.
Empty file modified package.json
100755 → 100644
Empty file.
Empty file modified src/tsconfig.spec.json
100755 → 100644
Empty file.

0 comments on commit f04f994

Please sign in to comment.