Package Exports
- cypress-screenshot-compare-new
- cypress-screenshot-compare-new/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cypress-screenshot-compare-new) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Cypress Screenshot Compare
๐งช Visually compare Cypress screenshots during tests.
Install
npm install cypress-screenshot-compare
Usage
import 'cypress-screenshot-compare';
cy.compareScreenshot('homepage');
Baseline images are stored on the first run. Diffs are saved in /diff
.
Options
cy.compareScreenshot('header', { threshold: 0.05 });
Why?
Sometimes UIs change without failing tests โ this plugin helps detect those visual regressions.
License
MIT