-
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 correctly loads image assets, which then do not appear in snapshots #10156
Comments
This might need additional options or command line args. See https://github.com/teampoltergeist/poltergeist and http://phantomjs.org/api/command-line.html |
Copying over: "How about injecting a custom JS binary into every page we diff that "documents" its progress with CSS classes. That would make waiting for onload trivial and allow for waiting for fonts to load." |
This PR does the following: Reorganizes the code in visual-diff.rb to support multiple webpages in one Percy build Reorganizes the directory structure of examples/visual-tests to support the upload of test assets in one fell swoop (Percy doesn't support piecemeal asset uploading) Adds a new visual test Makes progress on #10155 Partially blocked by #10156
After experimenting with various command line arguments to phantomjs, I'm almost certain that this is due to the fact that there's currently no signal that an AMP page has fully loaded its assets. Will now pursue Malte's suggestion above. |
After investigating this further, waiting for a while between I'll raise this with the Percy team via a bug in their repository. |
Here is the test log corresponding to Percy build https://percy.io/ampproject/amphtml/builds/270874. Note that the image assets are being loaded and fetched, but they don't appear in the snapshots.
The text was updated successfully, but these errors were encountered: