JSPM

cypress-screenshot-compare-new

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q15733F
    • License Good SQA

    A Cypress plugin to compare screenshots for visual regression testing

    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