The requireSnapshots fails only the first time (retries runMode >= 1)
krzysztof-kobrenczuk-viacomcbs opened this issue · 4 comments
krzysztof-kobrenczuk-viacomcbs commented
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
Cypress config:
retries: {
runMode: 2,
},
simonsmith commented
Do you know if this is specific to 2
retries? Wondering if it's just anything more than the first run
krzysztof-kobrenczuk-viacomcbs commented
simonsmith commented
Will be fixed in #13
simonsmith commented
Released in 8.0.0
- https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.0