Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9d00458

Browse files
petebacondarwinIgorMinar
authored andcommitted
fix(ngScenario): correctly disable animations for end 2 end tests
1 parent 98adc9e commit 9d00458

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/ngScenario/Application.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,10 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
7070

7171
if ($window.angular) {
7272
// Disable animations
73-
74-
// TODO(i): this doesn't disable javascript animations
75-
// we don't need that for our tests, but it should be done
7673
$window.angular.resumeBootstrap([['$provide', function($provide) {
77-
$provide.decorator('$sniffer', function($delegate) {
78-
$delegate.transitions = false;
79-
$delegate.animations = false;
80-
return $delegate;
81-
});
74+
return ['$animate', function($animate) {
75+
$animate.enabled(false);
76+
}];
8277
}]]);
8378
}
8479

0 commit comments

Comments
 (0)