Updating Base Images
If your visual tests fail, it could be due to one of four things:
You have written a brand new visual test, and the base image does not yet exist.
In this case, the Visual Regression status should have instructed you to create a new base image via the Comparadise UI.
Simply click on the link provided in the Comparadise comment or commit status to navigate to Comparadise and update base
images to create the base image for your new test.
Your visual tests failed to take a screenshot.
In this case, we cannot allow base image update because there may be an underlying issue with a component. This will require you to debug the test and figure out what went wrong that prevented the screenshots from being taken. Typically this is caused by a component not rendering properly or your test failing to match a selector.
Your component or page looks different.
This is the case where there was a visual difference detected on your PR. This should be reviewed in the Comparadise UI, and if the change is acceptable, base images should be updated.
Your visual comparison is outdated.
When another PR merges and changes a base image that your PR also changes, Comparadise sets the Visual Regression
status to failing with a message asking you to rebase. Comparadise will not accept visual changes while the latest
Visual Regression status on your commit is failing, because the screenshots you reviewed were compared against a
baseline that no longer exists. Rebase onto the default branch and re-run the visual tests, then review and accept
the fresh comparison.