Cypress · Middle · Question 47 of 77

What does cy.log() do?

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.

Further reading

Problem with a question

Cypress · Middle · question 47

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz