chore: disable ngAnimate for ng1 protractor tests

closes #1543
This commit is contained in:
Foxandxss 2016-05-29 00:55:38 +02:00 committed by Ward Bell
parent 888dcf362a
commit 9b2c54e77f
1 changed files with 8 additions and 0 deletions

View File

@ -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);
};
},