Cypress · Middle · Question 76 of 77
What does cy.writeFile do?
- 1Writes data to a file from the test
- 2Saves the test code to a new spec file
- 3Types text into a textarea element
Show the answer
Correct answer: Writes data to a file from the test
Explanation
It can save generated data or fixtures. Files go through the Node process, relative to the project root.