diff options
| author | Julie | 2014-02-19 21:01:54 -0800 |
|---|---|---|
| committer | Julie | 2014-02-21 16:57:04 -0800 |
| commit | 39c82f3fb7a8459304d5e07dc87bd0623ad1efd0 (patch) | |
| tree | cff2cb48fa3199d40ab292cca9ddf5ee4ef5505e /protractor-shared-conf.js | |
| parent | 1293cc88cd3d2e72c55fa8b8d268fab246e79fed (diff) | |
| download | angular.js-39c82f3fb7a8459304d5e07dc87bd0623ad1efd0.tar.bz2 | |
chore(travis): reorganize protractor configs to group by spec instead of by browser
Use the multiConfiguration ability of Protractor to start tests on multiple browsers
from the same travis cell. Group tests by type (jquery, jqlite, or docs tests) instead
of by browser. Turn on tests for jQuery.
Diffstat (limited to 'protractor-shared-conf.js')
| -rw-r--r-- | protractor-shared-conf.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/protractor-shared-conf.js b/protractor-shared-conf.js new file mode 100644 index 00000000..147bb006 --- /dev/null +++ b/protractor-shared-conf.js @@ -0,0 +1,27 @@ +exports.config = { + allScriptsTimeout: 11000, + + baseUrl: 'http://localhost:8000/build/docs/', + + framework: 'jasmine', + + onPrepare: function() { + // Disable animations so e2e tests run more quickly + var disableNgAnimate = function() { + angular.module('disableNgAnimate', []).run(function($animate) { + $animate.enabled(false); + }); + }; + + browser.addMockModule('disableNgAnimate', disableNgAnimate); + + // Store the name of the browser that's currently being used. + browser.getCapabilities().then(function(caps) { + browser.params.browser = caps.get('browserName'); + }); + }, + + jasmineNodeOpts: { + defaultTimeoutInterval: 30000 + } +}; |
