There is a native event which is fired when transitions end so you can react to it here and in your tests: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions#Detecting_the_completion_of_a_transition