Can someone suggest me how to disable animations in angular JS applications while performing protractor testing. I've added the code below in my Protractor config file, but it does not help me:
var disabledNgAnimate = function () {angular.module ('disableNgAnimate', []). Run (function ($ animate) {$ animate.enabled (false);}); }; Browser.addMockModule ('disableNgAnimate', disableNgAnimate);
You can see angular's Protocol configuration:
You should add it under the previous version:
onPrepare: function () {/ * global angle: false, browser: false, jasmine: disable the wrong * / // animation so e2 A test run faster DisableNgAnimate = function () {angular.module ('disableNgAnimate', []). (['$ Animate', function ($ animate) {$ animate.enabled (false);}]); }; Browser.addMockModule ('disableNgAnimate', disableNgAnimate);
Comments
Post a Comment