-
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
Cypress.env() return value is garbled when multibyte string in 3.5.0 #5435
Comments
Thank you so much for providing a full reproducible example. I also see this behavior with the code provided. I can also confirm that this is a regression introduced in 3.5.0 3.4.13.5.0I have confirmed that this also takes place when setting the Environment Variable in the following ways:
The env var shows up correctly in the configuration panel in the Desktop GUI. |
I have added a failing test in branch |
Added logging env variables on the server side
|
The code for this is done in cypress-io/cypress#5451, but has yet to be released. |
Released in |
Current behavior:
Return value of
Cypress.env()
is garbled whencypress.env.json
includes multibyte string.Desired behavior:
Return value of
Cypress.env()
is not garbled.On cypress 3.4.1, I got desired behavior.
Steps to reproduce: (app code and test code)
cypress.env.json
あいうえお
is Japanese characters.$ npx cypress open
and selectgarbled_test.js
Versions
The text was updated successfully, but these errors were encountered: