-
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
Parse YAML files automatically in cy.readFile() #489
Comments
We have decided to go a different direction than was originally planned when this issue was opened over 2 years ago. I will be closing this issue since we do not want to integrate Yaml file parsing directly into the Cypress product at this time. We think this would be a good use case for a Cypress plugin, if there is demand for that, that others could pull into their Cypress tests. |
I was looking specifically for how to load yml files. Thank you @jennifer-shehane for documenting this use case. I might be able to create a custom cypress command to load yml files in a simplified manner. Please update this thread should you learn of a better practice/ plugin for reading yml files as fixtures in cypress. |
Current behavior:
In order for me to parse a YAML file, I have to add this code to my tests:
Expected behavior:
I'd like Cypress to parse the YAML file for me, similar to how it does for JSON files. So I could write this:
The text was updated successfully, but these errors were encountered: