diff options
| author | Julie | 2014-01-13 15:20:44 -0800 |
|---|---|---|
| committer | Matias Niemelä | 2014-01-22 12:41:35 -0500 |
| commit | 82213efff23a71ca37e1a99c11ef6bc49b1af1eb (patch) | |
| tree | 767c32160c83b28022523d85fa620ceb920089b2 /protractor-conf.js | |
| parent | ec59be67bc1ffd8a75d7b18bf5891a49450a5763 (diff) | |
| download | angular.js-82213efff23a71ca37e1a99c11ef6bc49b1af1eb.tar.bz2 | |
test(doc:protractor): turn off animation for doc end to end tests to speed things up
Diffstat (limited to 'protractor-conf.js')
| -rw-r--r-- | protractor-conf.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protractor-conf.js b/protractor-conf.js index d7ab2b32..9e7179db 100644 --- a/protractor-conf.js +++ b/protractor-conf.js @@ -14,6 +14,17 @@ exports.config = { 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); + }, + jasmineNodeOpts: { defaultTimeoutInterval: 30000 } |
