Debugging Cypress Tests November 13, 2018 cy.visit("/") .get("something") .click() .then((subject) => { debugger; return subject; }); if (window.Cypress) { // do stuff that only executes in Cypress here }
cy.visit("/") .get("something") .click() .then((subject) => { debugger; return subject; }); if (window.Cypress) { // do stuff that only executes in Cypress here }