-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to record multiple snapshots in a single test #93
Comments
Naming should work as you described, I'm surprised this hasn't come up yet. We delete the screenshots so that multiple |
We've been experimenting a little bit and think we have a solution. It turned out that we were not able to call However, we could send a task from Therefore, there were three changes we had to make in order for everything to work:
We're not 100% sure whether this is the best place to register Happy to turn this into a PR if you think it's valuable? |
the tool is creating multiple copies of same image, but it should only create one image and compare with it, and also the diff folder is not getting created. |
Hey,
Due to the removing of screenshots after reading their content [1], Cypress isn't able to name consecutive screenshots in accordance to the docs [2]. This is quite unpractical if one wants to do multiple snapshot comparisons in a single test.
[1] https://github.com/palmerhq/cypress-image-snapshot/blob/v3.1.1/src/plugin.js#L70
[2] https://docs.cypress.io/api/commands/screenshot.html#Notes
The text was updated successfully, but these errors were encountered: