Sometimes tests exit early with logging like this:
1) Error on page "http://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-016-2850-8":
Script error.
Which doesn't really say what the problem is. I imagine this is due to a client side JS error with the
web page? The problems I see here are:
Bug
Tests exit with Script error.
Tests do not exit
Tested page URL: //bmcgenomics.biomedcentral.com/articles/10.1186/s12864-016-2850-8
Hi,
I've reproduced the issue and I'm working on it.
Testcafe tests should not fail due to a client side JS error
You can do it optionally with the skip-js-errors option
After some investigation we've found that the issue relates to our proxy module and we've created an issue there: https://github.com/DevExpress/testcafe-hammerhead/issues/1026
Quick response! Thanks a lot. In the mean time, skip-js-errors is great.
We've fixed the issue. It will be available in the next release.
Also we've published a daily build version with the fix (v0.13.0-alpha2). You can install it via
npm install testcafe@alpha
Hmm, I'm running into this issue today. My tests work as expected in the chrome browser, but it fails with:
Uncaught Error: Script error for "services/services"
http://requirejs.org/docs/errors.html#scripterror
I'm going to use the skipJsErrors argument for the API approach, but wanted to point this out for version 0.21.1
^ I didn't mean to unassign someone. Not sure how that happened.
I found the issue using t.debug(). It was a problem with a library my site was loading.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.