diff --git a/.gitignore b/.gitignore index 8b1bc4b..68bd9d9 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ # dependencies /node_modules -yarn.lock # IDEs and editors /.idea @@ -35,24 +34,9 @@ yarn-error.log testem.log /typings -# e2e -/e2e/*.js -/e2e/*.map - # System Files .DS_Store Thumbs.db # Generated output -/bundles/ -/modal/ -/autofocus/ -/utils/ -/ng2-bs3-modal.* -src/**/*.js -src/**/*.js.map -src/**.*.d.ts -**/*.ngfactory.ts -**/*.ngsummary.json -.idea/ *.tgz diff --git a/.travis.yml b/.travis.yml index 80bdcd7..cb35f5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: required language: node_js node_js: - "8.9" diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js new file mode 100644 index 0000000..86776a3 --- /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: [ + './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 } })); + } +}; \ No newline at end of file