question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress 9.1 open wrong URL when there is a ~ (tilde) in the link

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
chrisbreidingcommented, Nov 29, 2021

Thanks for the report and the reproduction. This appears to be a regression, so we’ll look into addressing it.

0reactions
cypress-bot[bot]commented, Dec 4, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found