Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Regression: clicking a request in the log no longer displays request/response body #17656

@JessefSpecialisterren

Description

@JessefSpecialisterren

Current behavior

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:

image

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.

Desired behavior

In Cypress 8.1.0, the request and response bodies are clearly shown in the console output:

image

Test code to reproduce

it('', () => {
  cy.visit('http://automationpractice.com/index.php?controller=authentication&back=my-account')
  cy.get('#email_create').type('a@b{enter}')
})

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.

Cypress Version

8.2.0

Other

No response

Metadata

Metadata

Assignees

Labels

type: regressionA bug that didn't appear until a specific Cy version releasev8.2.0 🐛Issue present since 8.2.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions