cypress-plugin-snapshots
cypress-plugin-snapshots copied to clipboard
Fix failure handling in spec retry
When running in retry mode with a failing snapshot, we would see the expected failure on the first attempt. On the second attempt this would pass as the numeric ID for the snapshot was incremented, creating a new snapshot.
This PR changes behavior so that
- Snapshots are not written if autopassNewSnapshots is false
- Snapshot id trackers are reset after test completion
Nice trick ! I did think about resetting after test completion !
@edimitchel what about merging this pr?
I cannot, build is not passing and I cannot change anything on project for be able to do...