Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 9b2c54e

Browse files
Foxandxsswardbell
authored andcommitted
chore: disable ngAnimate for ng1 protractor tests
closes #1543
1 parent 888dcf3 commit 9b2c54e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

public/docs/_examples/protractor.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ exports.config = {
7171
global.setProtractorToNg1Mode = function() {
7272
browser.useAllAngular2AppRoots = false;
7373
browser.rootEl = 'body';
74+
75+
var disableNgAnimate = function() {
76+
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
77+
$animate.enabled(false);
78+
}]);
79+
};
80+
81+
browser.addMockModule('disableNgAnimate', disableNgAnimate);
7482
};
7583
},
7684

0 commit comments

Comments
 (0)