This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$animate.flush() does not flush $animateCss animations in queue #13005
Closed
Description
We have an issue in angular-ui/bootstrap#4493 where it turns out that $animate.flush()
does not flush the animations queued up by $animateCss, so the expandDone
callback in the promise chain never fires in the collapse directive, which is causing some testing problems.
In particular, the .then
callback in the promise returned by $animateCss(...).start()
never gets called because there is no mechanism in ngMock for flushing out the queued animation.