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

Screenshot difference due to page scroll #287

Unanswered
JulioPazini asked this question in Q&A
Discussion options

I'm having this problem where sometimes the screenshot is a few pixels off because of the scroll of the page. Here's the images for comparison:

Original image:
FAQ snapshot #0

Image after running the test:
FAQ snapshot #0 actual

Diff between them:
FAQ snapshot #0 diff

Sometimes it passes without a problem. Does anybody know a way to make sure the screenshot is always taken in the same place? or maybe I'm missing something?

You must be logged in to vote

Replies: 1 comment

Comment options

Hey!

Do you still have a reproduction scenario for this one?

As far as I remember, whenever I've encountered a case like this I was able to force scroll position using cypress apis - like scrollTo. Have you tried that?

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 によって変換されたページ (->オリジナル) /