Skip to content

Commit 82213ef

Browse files
juliemrmatsko
authored andcommitted
test(doc:protractor): turn off animation for doc end to end tests to speed things up
1 parent ec59be6 commit 82213ef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

protractor-conf.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ exports.config = {
1414

1515
framework: 'jasmine',
1616

17+
onPrepare: function() {
18+
// Disable animations so e2e tests run more quickly
19+
var disableNgAnimate = function() {
20+
angular.module('disableNgAnimate', []).run(function($animate) {
21+
$animate.enabled(false);
22+
});
23+
};
24+
25+
browser.addMockModule('disableNgAnimate', disableNgAnimate);
26+
},
27+
1728
jasmineNodeOpts: {
1829
defaultTimeoutInterval: 30000
1930
}

0 commit comments

Comments
 (0)