cypress-visual-regression-fix
Advanced tools
Changelog
v1.0.0
errorThreshold
now compares with the square root of the percentage of pixels that have changed. For example, if the image size is 1000 x 660, and there are 257 changed pixels, the error value would be (257 / 1000 / 660) ** 0.5 = 0.01973306715627196663293831730957
.