-
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.intercept fails to respond with JSON containing tilde (~) in string property #19178
Comments
Probably related to #19170 |
This seems to be a regression in 9.1.0. Similar issues using different commands: |
The code for this is done in cypress-io/cypress#19239, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
When intercepting a request and responding with a JSON that contains a tilde an error is thrown.
VM263:1 Uncaught (in promise) SyntaxError: Unexpected token x in JSON at position 9
This seems to be a regression in 9.1.0, in 9.0.0 this executes just fine.
Desired behavior
No error, the response contains the correct object with a tilde.
Test code to reproduce
Repro repo: https://github.com/LoaderB0T/cypress-tilde-regression
Cypress Version
9.1.0
Other
No response
The text was updated successfully, but these errors were encountered: