Skip to content

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

@lephuongbg

Description

@lephuongbg

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:

cypress-io/cypress-test-tiny@master...lephuongbg:cypress-9.1-url-bug

Cypress Version

9.1.0

Other

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions