simonsmith/cypress-image-snapshot

The requireSnapshots fails only the first time (retries runMode >= 1)

krzysztof-kobrenczuk-viacomcbs opened this issue · 4 comments

Hello,

I'm trying to use the --env requireSnapshots=true parameter. However, if I have the Cypress options set to retries runMode:2, then only the first run fails, and subsequent attempts create the snapshots.

pnpm cypress run --browser electron --spec "cypress/tests/visual/recordView.visual.cy.ts" --env requireSnapshots=true

image

image

Cypress config:
retries: {
runMode: 2,
},

Do you know if this is specific to 2 retries? Wondering if it's just anything more than the first run

The same behavior is also for 1 retry, seems that this functionality works only for the first run
image

Will be fixed in #13