cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.

Home Page:https://cypress.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correct type of `its` for request body

gajraj-gan opened this issue · comments

What would you like?

Hi,

When we intercept a req, and then get it using cy.get("@req") and want to access the body using its("request.body"), it would be helpful if "request.body" was included in the types so that the IDE (VSCode in my case) can give better suggestions.
Currently I do not see any suggestion related to this. I guess the .get only has a type of JQuery which is causing this.

Thanks !!

Why is this needed?

No response

Other

No response