-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
cy.visit() and URL encoding #5034
Comments
Of course there is a workaround: Encode your URLs yourself with |
We can pass through the |
The code for this is done in cypress-io/cypress#5040, but has yet to be released. |
Released in |
Current behavior:
Cypress does not support URL encoding at all. Ok I know this is the responsible of the HTTP 'client', but it would be nice if the cy.visit() function would support URL encoding in a similar way as any other JS REST client does.
Just for clarification: I am talking about URL parameters. Not HTTP headers. And also not POST body.
Desired behavior:
cy.visit() should have a parameter params of type object. The passed values in this object will be URL encoded and then all attributes are sent as parameters in the request URL.
Steps to reproduce: (app code and test code)
This code should work:
Versions
all cypress versions. Yes ok, this is a feature request.
The text was updated successfully, but these errors were encountered: