diff --git a/.gitignore b/.gitignore index 54bfd2001..bcefad4df 100644 --- a/.gitignore +++ b/.gitignore @@ -34,8 +34,8 @@ testem.log /typings # e2e -/e2e/*.js -/e2e/*.map +/e2e/src/*.js +/e2e/src/*.map # System Files .DS_Store diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js new file mode 100644 index 000000000..52740aef8 --- /dev/null +++ b/e2e/protractor.conf.js @@ -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 } })); + } +}; diff --git a/e2e/tsconfig.e2e.json b/e2e/tsconfig.e2e.json old mode 100755 new mode 100644 diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json old mode 100755 new mode 100644