Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct type of its for request body #29536

Open
gajraj-gan opened this issue May 17, 2024 · 0 comments
Open

Correct type of its for request body #29536

gajraj-gan opened this issue May 17, 2024 · 0 comments
Labels
type: typings Issue related to Cypress types (for TypeScript)

Comments

@gajraj-gan
Copy link

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

@gajraj-gan gajraj-gan changed the title Correct type for its Correct type of its for request body May 17, 2024
@jennifer-shehane jennifer-shehane added the type: typings Issue related to Cypress types (for TypeScript) label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: typings Issue related to Cypress types (for TypeScript)
Projects
None yet
Development

No branches or pull requests

2 participants