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

Refactor Request Wrapper to accommodate different parameter types #19

Merged
merged 5 commits into from Apr 2, 2020

Conversation

andrew-blomquist-6
Copy link
Contributor

I stumbled upon this because our application was using the cy.request(method, url) syntax. Originally, the wrapper for request was only handling calls that passed an options object. This PR allows the wrapper to accommodate the other parameter types listed here: https://docs.cypress.io/api/commands/request.html#Syntax

I also added some extra test cases to cover the different ways request can be called.

@archfz
Copy link
Owner

archfz commented Apr 2, 2020

Great catch. Looks good. Will add this to the next release asap.

@archfz archfz merged commit 3a49b23 into archfz:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants