snapshot icon indicating copy to clipboard operation
snapshot copied to clipboard

Different snapshot is considered valid on retries

Open LeBenLeBen opened this issue 3 years ago • 0 comments

When using test retries and a snapshot doesn’t match, the test will fail on the first attempt but pass on the subsequent retries.

Expected behavior

Tests should continue failing, even on new attempts, if snapshots don’t match.

Workaround

Disable retries for tests using snapshots (see https://docs.cypress.io/guides/guides/test-retries#Custom-Configurations)

Versions

Cypress 7.6.0 @cypress/snapshot 2.1.7

LeBenLeBen avatar Nov 15 '21 07:11 LeBenLeBen