garris / garris/BackstopJS

threshold not working properly

Open
#1,588 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I compare 2 image which is the different only 1px X 1px, but when I tried to set thresthold 1 and 100 there is no different, the lib still can catch the different between 2 image. so what is the function of threshold, I expect if i set 100 which mean will more tolerance than 1
first image there is 1px X 1px red dot in the bottom of page
![test](https://github.com/user-attachments/assets/46c82131-d0fb-4e3b-8910-46afc686114e)

second image
![actual](https://github.com/user-attachments/assets/9b614c01-d83a-4d7c-b2b9-b31e89b477d7)

but when i tried to used this setAllowingPercentOfDifferentPixels() -> there is a different result when I set 0 -> it will catch the different of image, but when I set 100 it will not catch the different

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.