devanthe.dev

Debugging Cypress Tests

1 min read

1cy.visit('/')
2 .get('something')
3 .click()
4 .then(subject => {
5 debugger
6 return subject
7 })
1if (window.Cypress) {
2 // do stuff that only executes in Cypress here
3}