Cypress · Middle · Question 47 of 77
What does cy.log() do?
- 1Writes a line to the server's log files
- 2Saves the browser console to a file
- 3Prints a message in the Cypress command log
Show the answer
Correct answer: Prints a message in the Cypress command log
Explanation
It's useful to mark steps in long tests. For terminal output in cypress run, use a cy.task that calls console.log.