-
-
Notifications
You must be signed in to change notification settings - Fork 22
Delay Animation Before Screenshot Start #278
-
Hi all,
Is there any way to wait for animation to complete before run the matchImage function?
Whenever I run the matchImage function it will screenshot the incomplete state of the element.
Thanks,
Dian
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Most common solution is to just disable animation using and old "trick" like this one:
* { animation-duration: 0s !important; }
If you inject a css style like above during setup phase of your Cypress test suite - you should be fine :)
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment