Enhancement
The destination URL of a request can be changed in a RequestHook by modifying parts like hostname, port, protocol of the URL by altering corresponding properties of a requestOptions object. The requestOptions.url property can be changed, but it doesn't lead to change of the request's destination.
The destination of a request must be changed when the requestOptions.url is changed.
any leads for fixing this issue? I'd be interested in picking this up if you think this is easy enough to understand -- I'm new to the testcafe codebase
Hi @kennychua
Thank you for your interest in TestCafe. At present, we don't have a final API design for this enhancement. We will discuss about it and let you know about results.
We faced the same issue. After struggling a couple of hours try to find why this didn't work, I found a reference to this issue.
If you do not intend to fix this for the moment, it would be nice at least to edit the document here to mark the url prop as read-only.
Most helpful comment
We faced the same issue. After struggling a couple of hours try to find why this didn't work, I found a reference to this issue.
If you do not intend to fix this for the moment, it would be nice at least to edit the document here to mark the
urlprop as read-only.