-
-
Notifications
You must be signed in to change notification settings - Fork 22
Screenshot difference due to page scroll #287
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
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?
Beta Was this translation helpful? Give feedback.