diff --git a/public/docs/_examples/protractor.config.js b/public/docs/_examples/protractor.config.js index fe4e419505..060c8d9040 100644 --- a/public/docs/_examples/protractor.config.js +++ b/public/docs/_examples/protractor.config.js @@ -71,6 +71,14 @@ exports.config = { global.setProtractorToNg1Mode = function() { browser.useAllAngular2AppRoots = false; browser.rootEl = 'body'; + + var disableNgAnimate = function() { + angular.module('disableNgAnimate', []).run(['$animate', function($animate) { + $animate.enabled(false); + }]); + }; + + browser.addMockModule('disableNgAnimate', disableNgAnimate); }; },