aboutsummaryrefslogtreecommitdiffstats
path: root/protractor-conf.js
diff options
context:
space:
mode:
authorJulie2014-01-13 15:20:44 -0800
committerMatias Niemelä2014-01-22 12:41:35 -0500
commit82213efff23a71ca37e1a99c11ef6bc49b1af1eb (patch)
tree767c32160c83b28022523d85fa620ceb920089b2 /protractor-conf.js
parentec59be67bc1ffd8a75d7b18bf5891a49450a5763 (diff)
downloadangular.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.js11
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
}