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
When I open the cypress, I am making up my tests, modifying the app to be more testable, etc... But the screenshot comparison fail "each time" (hum, yes, a bit of exaggeration here) a make a modification. So actually, I do an "rm -fr .../baseline" before each test, but that's not very top.
I would like to have a mode where Cypress-visual-regression would automatically erase screenshots. I anyway do the comparison when comiting the images in git, so I even don't look at the result at that time.
I had a look at "--env type=base", but it does not seems to work in "cypress open" mode
The text was updated successfully, but these errors were encountered:
jehon
changed the title
Enhancement: "cypress open" should allow overriding baseline screenshot
Enhancement: "cypress open" should allow overriding baseline screenshot automatically
Mar 30, 2021
I have stumbled upon this feature request, and I want to point out that it might not be currently possible due to this external dependency: cypress-io/cypress#15077. The issue is still present in Cypress 7.6.0.
In short, when running all tests in Cypress GUI mode, the name of the test spec file, and thus the name of the folder where base snapshots are stored will not match with the actual test spec file names, e.g. it will be cypress/snapshots/base/All Integration Specs/*.png instead of cypress/snapshots/base/example.spec.js/*.png.
When I open the cypress, I am making up my tests, modifying the app to be more testable, etc... But the screenshot comparison fail "each time" (hum, yes, a bit of exaggeration here) a make a modification. So actually, I do an "rm -fr .../baseline" before each test, but that's not very top.
I would like to have a mode where Cypress-visual-regression would automatically erase screenshots. I anyway do the comparison when comiting the images in git, so I even don't look at the result at that time.
I had a look at "--env type=base", but it does not seems to work in "cypress open" mode
The text was updated successfully, but these errors were encountered: