You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Similar to meinaart/cypress-plugin-snapshots#217 (and the open pull that fixes it), cy.state('runnable')._currentRetry (as documented here) should be incorporated into the nameCacheCounter logic so that a retried test is not seen as a new test.
To Reproduce
Steps to reproduce the behavior:
Have a test, with an accepted and committed baseline image
Change the code under test so that the test will go red
Run the test
Expected behavior
Test should go red. Instead test goes red, then on retry it goes green because the plugin is generating an actual with #1.png in the name instead of #0.png and therefore treating it as a new test.
Screenshots
Please complete the following information:
Mac OS 12.6
Chrome 107
Cypress 10.8.0
Additional context
Add any other context about the problem here.