Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy

Troubleshoot - TestCafe

Issues with Percy TestCafe SDK during the visual testing process.

TestCafe is a modern end-to-end testing framework for web applications. It allows developers to create reliable and stable tests that run seamlessly on various browsers, providing an efficient testing solution for web projects. This page describes how to troubleshoot issues when using Percy TestCafe SDK during the visual testing process.

Missing assets from snapshots

If your snapshots end up missing assets, it is possible your sites asset URLs are being changed by TestCafe. TestCafe will proxy remote assets by prepending your computers local IP to the URL. See this GitHub issue for more details.

To work around this, you can add your computers IP to the list of hostnames Percy will capture assets from. This is done by passing a -h flag to the exec command:

bash
Copy icon Copy snippet

This will now properly capture the asset and render correctly in Percy. If this doesn’t solve your issues, please reach out to support!

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy