cypress-plugin-visual-regression-diff: feat: images of difference sizes cause instant test failure

Sometimes Cypress takes screenshots of slightly differences sizes during the same test. If the screnshots are different sizes the test fails. But I notice in the code that it calls alignImagesToSameSize function if they are different sizes to try and do the comparison on resized images. If the test always fails what is the reason for alignImagesToSameSize? Perhaps it should attempt to continue with the comparison after resizing the images?

Example of the diff we see in screenshot size between runs:

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Uf, I started wondering what should I do with this PR 😄 Thanks for confirming that it works @dhulme! I’ll do a full 2.0.0 release later today