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
I found out that snapshots are saved in different directories depending on if they are created using cypress run or cypress open.
Steps to reproduce
Delete the examples/snapshot directory
Run cypress run
Run crypress open and click on Run all specs
What happens is that the same call to matchImageSnapshot produces two different snapshot files:
I stumbled open this because I made a change and expected the tests to fail but since there was a new file created everything was still green. I would expect that the previous snapshot should have been used to match against the new screenshot.
Is there something we can do here?
The text was updated successfully, but these errors were encountered:
I've noticed this behavior as well and it's not ideal. I think it's caused by cypress-io/cypress#2091 since we just mirror the screenshots directory in snapshots.
It looks like a fix for the issue is targeting Cypress v3.0.3 though so hopefully that is released soon.
Hi!
I found out that snapshots are saved in different directories depending on if they are created using
cypress run
orcypress open
.Steps to reproduce
examples/snapshot
directorycypress run
crypress open
and click onRun all specs
What happens is that the same call to
matchImageSnapshot
produces two different snapshot files:I stumbled open this because I made a change and expected the tests to fail but since there was a new file created everything was still green. I would expect that the previous snapshot should have been used to match against the new screenshot.
Is there something we can do here?
The text was updated successfully, but these errors were encountered: