diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js b/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js new file mode 100644 index 00000000..769dfae6 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js @@ -0,0 +1,75 @@ +var args = process.argv.slice(2); +var plugins = []; + +var useA11y = args.indexOf('--a11y') > -1; +var useConsole = args.indexOf('--console-warning') > -1 || args.indexOf('--console-error') > -1; + +if (useA11y) { + plugins.push({ + path: 'node_modules/protractor/plugins/accessibility', + chromeA11YDevTools: { + treatWarningsAsFailures: true + } + }); +} + +if (useConsole) { + plugins.push({ + path: 'node_modules/protractor/plugins/console', + failOnWarning: args.indexOf('--console-warning') > -1, + failOnError: args.indexOf('--console-error') > -1 + }); +} +var multiCapabilities = [{ + browserName: 'firefox' +}]; + +// if (process.env.TRAVIS_PULL_REQUEST === 'false') { +// multiCapabilities.push({ +// browserName: 'chrome' +// }); + +// if (!useA11y) { +// multiCapabilities.push({ +// browserName: 'safari' +// }); +// } + +// if (!useA11y && !useConsole) { +// multiCapabilities.push({ +// browserName: 'internet explorer', +// version: 10 +// }); +// multiCapabilities.push({ +// browserName: 'internet explorer', +// version: 11 +// }); +// } + +// multiCapabilities.forEach(function(capability) { +// capability['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER; +// capability.name = 'ngDialog Protractor ' + process.env.TRAVIS_JOB_NUMBER; +// }); +// } + +var config = { + allScriptsTimeout: 11000, + specs: ['tests/protractor/**/*.js'], + multiCapabilities: multiCapabilities, + framework: 'jasmine2', + jasmineNodeOpts: { + defaultTimeoutInterval: 30000 + }, + plugins: plugins +}; + +// if (process.env.TRAVIS_PULL_REQUEST === 'false') { +// config.sauceUser = process.env.SAUCE_USERNAME; +// config.sauceKey = process.env.SAUCE_ACCESS_KEY; +// } + +console.log('TRAVIS_PULL_REQUEST', process.env.TRAVIS_PULL_REQUEST); +console.log('protractor config: ', config); +console.log('multiCapabilities: ', multiCapabilities); + +module.exports.config = config; |