Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 3.3 KB

CHANGELOG.md

File metadata and controls

58 lines (35 loc) · 3.3 KB

cypress-image-snapshot

5.0.0

Major Changes

  • Set deterministic path for snapshots BREAKING: While the path is now deterministic, it may now be slightly different.

    e.g. given this folder structure:

    /
      / package.json
      / cypress.config.js
      / cypress
        / e2e
          / some-folder
            / some-test.cy.js
        / snapshots
    

    Previously snapshots would have been in /cypress/snapshots/some-folder/some-test.cy.js/ when run without a --spec filter and maybe something like /cypress/snapshots/some-test.cy.js/ with a filter. Now, snapshots would be in /cypress/snapshots/e2e/some-folder/some-test.cy.js/ - the path is derived relative to the CWD.

4.2.0

Minor Changes

Patch Changes

4.1.0

Minor Changes

  • 67542c6 #2 Thanks @lexanth! - Save a copy of the actual (observed) snapshot when encountering an error
  • be7189c #5 Thanks @lexanth! - Add option to require snapshots to be present or fail if they're missing

Patch Changes

  • e449d3a #3 Thanks @lexanth! - Fix error messages for snapshot failures

    Previously had dimensions the wrong way round and always reported a size issue as the failure cause, even if we're allowing size mismatches.

4.0.1

Patch Changes

  • 17f7927 Thanks @jaredpalmer! - When using native retries that come in Cypress v5+ real image failures are marked as passed on the retries because cypress names the snapshots as 'filename (attempt X).png (and there is no configuration option to change this). The fix just removes the ' (attempt X)' suffix from the filename.