From 82213efff23a71ca37e1a99c11ef6bc49b1af1eb Mon Sep 17 00:00:00 2001 From: Julie Date: Mon, 13 Jan 2014 15:20:44 -0800 Subject: test(doc:protractor): turn off animation for doc end to end tests to speed things up --- protractor-conf.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'protractor-conf.js') 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 } -- cgit v1.2.3