screenshot comparison + Cypress + Mochawesome report + CircleCI
This repo an example of how to use Cypress Image Snapshot plugin
Threshold
to make tests stable in circleicaddMatchImageSnapshotCommand({
failureThreshold: 0.03, // threshold for entire image
failureThresholdType: 'percent', // percent of image or number of pixels
customDiffConfig: { threshold: 0.1 }, // threshold for each pixel
capture: 'viewport', // capture viewport in screenshot
});