-
Notifications
You must be signed in to change notification settings - Fork 674
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
TestCafe hungs if the overriden method of the RequestHook raises an error #3786
Comments
I was able to reproduce the issue. I think it's not a valid scenario to pass nothing to the RequestHook constructor. Anyway, TestCafe should not hang in this case, so I think it is a bug and we'll discuss a possible solution with the team. Thank you for your report. |
Thanks @AlexKamaev. If passing nothing to
Thanks in advance! Best regards, |
We have not discussed this issue with the team yet. Once we study the case, we will correct the description given in the documentation if required. Thank you for pointing this out. |
I discussed the issue with the team and it looks that it's valid to pass nothing to the Request Hook constructor. Sorry for this misstatement. Your code hangs because you do not override the |
Thanks for clarification 👏 |
Closed by #3868. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
What is your Test Scenario?
edit: When I added URL Filter to Hook, it's works - so case is only without it.
I'm trying to add custom HTTP header without any URL filter to few fixtures or tests.
What is the Current behavior?
The whole fixture couldn't load and hang on TestCafe splash screen with
CONNECTED
information. When I removed.requestHooks(hook);
fromfixture
ortest
chain, it's work as expected.When we'll check network info during loading, TestCafe is still sending requests to browser heartbeat (
Request URL: http://192.168.1.183:52055/browser/heartbeat/7bPNpzU
) and get200 OK
with response but withouturl
property value:What is the Expected behavior?
Fixture or test with
.requestHooks(hook);
method should load and execute properly.What is your web application and your TestCafe test code?
I'm using your example test and example HTTP request hook to easily allow to reproduce it.
Your website URL (or attach your complete example): http://devexpress.github.io/testcafe/example
Your complete test code (or attach your test files):
Your complete test report:
I forced exit due to few minutes without any result.
Screenshots:
Config file:
Steps to Reproduce:
.testcaferc.json
$ ./node_modules/.bin/testcafe
Your Environment details:
1.1.4
v10.14.2
Chrome 74.0.3729
Mac OS X 10.14.4
The text was updated successfully, but these errors were encountered: