-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Baseline Image is modified during test run #197
Comments
Hey! To avoid unexpected behaviour after migration, this plugin always regenerates baseline images whenever its' version has been changes (so, every time you upgrade it in your repository). After single regeneration right after version update everything should work as expected - create a new issue please if that's not the case for you. And regarding your original issue - do you have any ideas how we could improve this situation? |
Hi Jakub, thank you very much for your response. |
For what it's worth, this surprised me and my colleague as well. We also assumed the baseline images would be kept as-is between upgrades. Out of curiosity, has there been any unexpected behavior after upgrades before? Personally, I would be fine with a situation where an upgrade of this plugin fails on CI for some or all snapshots. Deleting failing baselines is already part of our workflow for when visual changes are intended. We have a few hundred baseline images in our test suite. Depending on the update frequency we could end up with a larger-than-necessary That said, we're also fine with keeping the behavior as-is. But maybe add an entry to the FAQ 😄 |
I agree -- updating all images on a version change is unexpected, especially when it's just a version patch. |
Thanks for your feedback. Yes, there were some issues in the past when we did changes to default image comparison configuration. |
I've just created a PR regarding this behaviour, feel free to review it: #221 |
# [3.3.0](v3.2.15...v3.3.0) (2023-05-21) ### Bug Fixes * **deps:** update dependency pngjs to v7 ([#215](#215)) ([af71297](af71297)) ### Features * createMissingImages option ([#222](#222)) ([2aef358](2aef358)), closes [#204](#204) * separate versioning for images ([#221](#221)) ([b2a7434](b2a7434)), closes [#197](#197)
🎉 This issue has been resolved in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Hi,
I upgraded from 3.1.7 to 3.2.3 and now when I run the tests (with
pluginVisualRegressionUpdateImages: false
) the baseline images (something-something#0.png) is also modified. not the content but metadata (last-modified).This doesn't happen when I switch back to 3.1.7
To Reproduce
Steps to reproduce the behavior:
If this can't be reproduced by you, then let me know and i'll try adding a minimal reproducible repo for this.
Expected behavior
Baseline screenshots are not touched unless
updateImages
flag is set.Please complete the following information:
The text was updated successfully, but these errors were encountered: