-
Notifications
You must be signed in to change notification settings - Fork 83
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
test: reduce visual regression tests flakiness #239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, needs checking why the visual tests fail
It turns out that This is a known problem that happened in the past with individual repositories. It's unclear why the |
Hmm, looking at const passed = diffPercentage === 0;
if (!passed) {
await saveDiff();
}
if (!passed || options.buildCache) {
await saveFailed();
}
return {
errorMessage: !passed
? `Visual diff failed. New screenshot is ${diffPercentage.toFixed(2)} % different.`
: undefined,
diffPercentage: -1,
passed,
}; |
3c14cab
to
06bbff9
Compare
06bbff9
to
011f002
Compare
011f002
to
2df66ce
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
Description
It turns out the
openSubMenus
helper was not using promises and the test was apparently passing or failing randomly, most likely depending on the network latency (in some cases, the screenshot was taken before last menu was opened).Fixes #238
Type of change