-
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.
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
-
e449d3a
#3 Thanks @lexanth! - Fix error messages for snapshot failuresPreviously had dimensions the wrong way round and always reported a size issue as the failure cause, even if we're allowing size mismatches.
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.