-
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
fix: writeFile returns string instead JSON #2373
Conversation
If input of writeFile is an object, it should return an object after successful write instead of a string.
Thanks for submitting this. Could you please add a test? https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/cypress/integration/commands/files_spec.coffee#L246 |
I just forgot that, added. |
Thanks for the test. There's an issue with Circle CI related to PRs from forks and the cache that's causing all the tests to fail. Once we resolve that and see all the tests pass, we'll get this merged. |
the failure is due to group run bug, will be fixed soon by pushing the API |
@lilaconlee per our discussion today... forgot this was an open PR, hah |
According to docs, if input of writeFile is an object, it should return an object after successful write instead of a string.
This issue was mentioned here : While writing to a file and then asserting a Cypress.io test, the system throws 'expected undefined to equal..'