cypress-match-screenshot icon indicating copy to clipboard operation
cypress-match-screenshot copied to clipboard

False Negatives when switching between Resolutions

Open egucciar opened this issue 7 years ago • 2 comments

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

egucciar avatar Apr 04 '18 22:04 egucciar

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:

julianburr avatar Apr 08 '18 13:04 julianburr

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

  • With open, run the suite in full screen and run again when the screen is resized to be smaller
  • With open, run the suite in full screen on a large monitor and run again in a small monitor
  • With run (once you fix it on your end), on two different machines

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

It's very consistent

egucciar avatar Apr 08 '18 13:04 egucciar