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
After updating to Cypress 8.2.0, request and/or response bodies are no longer displayed in the console when clicking on certain requests in the log. Example:
The selected request has both a request body and a response body, but the information displayed in the console suggests that it has neither. Expanding the XmlHttpRequest object does show the response body, but not the request body. This is both misleading and inconvenient when examining requests.
Note that this issue does not seem to affect all requests, but those it does affect, it seems to affect consistently.
In Cypress 8.1.0, the request and response bodies are clearly shown in the console output:
When the test has finished, open the console and click the POST 200 /index.php request at the bottom of the runner log. Note that I do not own or control this website. It appears to be flaky sometimes; if that happens, please try again after a few minutes.
The text was updated successfully, but these errors were encountered:
@Narretz Even after this fix, response bodies will only be available for XHRs and requests intercepted with cy.intercept(), to match parity with the previously existing functionality.
You are best off using the "Network" tab of the Developer Tools to inspect request/response bodies if your requests do not fit those 2 cases.
Due to how Cypress works, it's a bit of additional work to get the request/response bodies for all requests in the browser. Even with that work being done, there could be a negative performance impact that would have to be debugged. I'm not saying it's not possible or important to add what you're asking for, but just that it's a significant chunk of work to add and it's not part of this fix.