-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Percy test appears flaky with three dots on visual diff #10022
Comments
@honeybadgerdontcare, I noticed this, searched for an existing issue, didn't find one, and filed #10024, only to find out that you had filed this a few seconds before me :) |
@rsimha-amp Waiting for this.resources_.getResourcesInRect(
this.win, rect, /* isInPrerender */ false)
.then(resources => Promise.all(resources.map(r => r.loadedOnce()))) |
I believe there's a way to have percy/capybara wait for a particular CSS element to be visible on a page before taking a snapshot. Will take a look. http://www.rubydoc.info/github/jnicklas/capybara#asynchronous-javascript-ajax-and-friends |
@rsimha-amp I don't think AMP has a clear signal, but it would be OK to add one. |
Speculative fix that I believe should work as an implicit wait for the page to fully load. Tested this by searching for .i-amphtml-layout, which is a CSS element that does exist on the page, and the call to has_no_css waited for a couple of seconds before returning false. Fixes #10022
25 straight green Percy builds so far, since #10078 was merged. Looks like the fix worked. Will keep an eye out for more timing related failures. |
100+ green runs in a row. Consider this fixed. |
Several PRs are getting the same visual diff issue and causes me to think it may be a flaky test with percy.
Examples:
https://percy.io/ampproject/amphtml/builds/256910
https://percy.io/ampproject/amphtml/builds/256713
https://percy.io/ampproject/amphtml/builds/256555
https://percy.io/ampproject/amphtml/builds/256464
https://percy.io/ampproject/amphtml/builds/255472
More can be found at:
https://percy.io/ampproject/amphtml
The text was updated successfully, but these errors were encountered: