bahmutov / cypress-book-todomvc

Cypress tests inside README that update the screenshots
https://glebbahmutov.com/cypress-book-todomvc/
11 stars 2 forks source link

Add percentage diff to the image comparison #5

Closed bahmutov closed 3 years ago

bahmutov commented 3 years ago

And do not update the images that changed in just a few pixels

bahmutov commented 3 years ago

Otherwise, we see commits like this from CI

Updating 38d1cc6..d34a1e6
Fast-forward
 images/demo-test.png | Bin 144115 -> 144109 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

Probably can use 0.1% byte size at first?