percy / percy-cypress

Visual testing with Cypress and Percy
https://percy.io
MIT License
340 stars 41 forks source link

Snapshot takes too long to render and build fails #269

Closed dkulezich closed 3 years ago

dkulezich commented 3 years ago

Percy snapshot takes too long to render and times out, causing the build to fail. One of the frustrating thing is that even if the rest of the snapshots are rendered, I'm not able to see them. The other is, I'm missing the reason why this particular snapshot fails.

Here is a build with multiple snapshots, one of them failed, but the rest are not visible. This one is with only the failing snapshot.

I would really appreciate some help here. Thank you

wwilsman commented 3 years ago

Hey @dkulezich!

When rendering in Percy's infrastructure, the process waits for requests to finish before taking a screenshot in order to make sure everything on the page has loaded. It looks like there's an asset on your page that has a pending request that never resolves, resulting in that timeout.

image

Since this isn't related to the SDK, I'm going to close this issue. If you continue to have issues with builds/snapshots timing out, or any rendering inconsistencies, please reach out to support.