Cypress · Junior · Question 45 of 75
How do you pause a test to inspect the page in the Cypress app?
- 1Add
cy.pause() - 2Add
cy.sleep() - 3Add
cy.stop()
Show the answer
Correct answer: Add cy.pause()
Explanation
cy.pause() halts the command queue so you can inspect and then step through. cy.debug() logs the subject and hits a debugger.