jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
888 stars 160 forks source link

Swapped dimensions in error message #130

Open across226 opened 4 years ago

across226 commented 4 years ago

It looks to me dimensions are swapped in error message coming from here: https://github.com/palmerhq/cypress-image-snapshot/blob/7e20afb23811ef212e2a24d73dc5e90cb6b9cd4c/src/command.js#L47

I mean error message like:

Error: Image size (1498x570) different than saved snapshot size (1448x596).

Seems received should go first, then baseline. Currently it's the other way around.

MickaelBergem commented 4 years ago

I can confirm I encountered this issue as well.