julianburr / cypress-match-screenshot

Utility to take screenshots during a cypress test and match them against previous runs
MIT License
58 stars 19 forks source link

False Negatives when switching between Resolutions #6

Open egucciar opened 6 years ago

egucciar commented 6 years ago

Seeing a significant amount of false negatives between resolutions - i.e. switching from big screen to small laptop screen. How to prevent?

julianburr commented 6 years ago

Can you post an example here? Even tho I think I know what you mean ... the way I currently scale the screenshots so they can be compared no matter what the screen size of the test runner window was, causes edges to be falsely detected as differences 😕 Not sure atm how to prevent it without increasing the threshold, but I'll look into it :+1:

egucciar commented 6 years ago

@julianburr I'm pretty sure this happens so consistently that you can easily reproduce with the following

I'm sure open will also fail on two different machines.

It's very consistent