Cypress 9.1 open wrong URL when there is a ~ (tilde) in the link
See original GitHub issueCurrent behavior
In Cypress 9.1, some of our tests failed due to Cypress process the URL in visit()
calls incorrectly.
This code:
cy.visit('/?q=~%28match_status~%28~%27invoiced%29%29')
causes Cypress to visit this link:
/?q=%5Cx7e%28match_status~%28~%27invoiced%29%29
Note the strange %5Cx7e
right after the q=
.
Desired behavior
Cypress should not alter the visit URL in anyway.
Test code to reproduce
https://github.com/lephuongbg/cypress-test-tiny/tree/cypress-9.1-url-bug
Quick link to diff:
https://github.com/cypress-io/cypress-test-tiny/compare/master...lephuongbg:cypress-9.1-url-bug
Cypress Version
9.1.0
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:7 (3 by maintainers)
Top Results From Across the Web
url
url () yields the current URL as a string. cy.url() is a query, and it is safe to chain further commands. Examples. No ......
Read more >AHT - River Thames Conditions
Giorlandino arrestato, Meridian dan private caller, Sway bar link toyota tundra, ... Url to open pdf page, Xe tay ga honda moi 2014,...
Read more >Untitled
Gordonia tree, Peter pans portadown opening hours, Renner's plumbing supply co ... Cocoon grid it cpg4, 2 cuptv, De-nist file list, Wolf exo...
Read more >rouch/Cypress: Fast, easy and reliable testing for anything that ...
elevatebart/feat/open-config-file. elevatebart/feat/setup-with-link-to-config-file. elevatebart/fix-colors. elevatebart/fix/remove-story-create-spec.
Read more >Cypress not opening URL and throwing error
I am trying to open a URL using cypress but it is giving error in response {"error_code":"E0020000" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report and the reproduction. This appears to be a regression, so we’ll look into addressing it.
Released in
9.1.1
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v9.1.1, please open a new issue.