Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Delay Animation Before Screenshot Start #278

Closed Unanswered
putudian2013 asked this question in Q&A
Discussion options

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

You must be logged in to vote

Replies: 1 comment

Comment options

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 :)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /