You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RequestMock does not send a response by using respond, there is a unhandled promise rejection.
(node:1812) UnhandledPromiseRejectionWarning: TypeError: ctx.destRes.pipe is not a function
at Object.decideOnProcessingStrategy (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:172:33)
at next (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:386:38)
at Object.checkSameOriginPolicyCompliance (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:148:9)
at next (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:386:38)
at Object.sendDestinationRequest (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:135:17)
at next (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:386:38)
at Object.<anonymous> (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:106:13)
at Generator.next (<anonymous>)
at step (C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:94:191)
at C:\dev\tc\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:94:361
(node:1812) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1812) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What is the expected behavior?
The response should be sent
How would you reproduce the current behavior (if this is a bug)?
Using the code below with testcafe chrome
Provide the test code and the tested page URL (if applicable)
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.
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
The RequestMock does not send a response by using
respond
, there is a unhandled promise rejection.What is the expected behavior?
The response should be sent
How would you reproduce the current behavior (if this is a bug)?
Using the code below with
testcafe chrome
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://phppot.com/demo/jquery-ajax-autocomplete-country-example/
Test code
Specify your
The text was updated successfully, but these errors were encountered: