aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}