0

I use cypress-image-snapshot plugin for UI testing. When comparing page footer snapshot, test case did not fail for new link added to footer area.

That means, my baseline footer snapshot hasn't the link. The system has a new link in the footer. I compare baselline footer element with system footer element. Test case passed without capturing difference. I need to fail the test case even a small change on the page.

failureThreshold: 0.03, 
failureThresholdType: 'percent', 
customDiffConfig: { threshold: 0.1 }, 
capture: 'viewport', 

Any idea for this please.

4

0 回答 0