As suggested on the Protractor page I tried adding the following in my config file:
onPrepare: function() {
var disableNgAnimate = function() {
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
$animate.enabled(false);
}]);
};
browser.addMockModule('disableNgAnimate', disableNgAnimate);
browser.getCapabilities().then(function(caps) {
browser.params.browser = caps.get('browserName');
});
}
And it did not turn off the animations.
I am dealing with a website that is heavily animated and this screws my tests a lot..
P.S. I am using the TypeScript definition for Protractor, does this matter?