Cypress internal commands cy.now and cy.state

1 · Gleb Bahmutov · Dec. 17, 2021, 3:49 p.m.
Cypress does not have a REPL which is unfortunate: sometimes you just want to run a few Cypress commands after the test has finished to see how to extend the test. Yet the only way you can run a command is by adding it to the spec file, saving it, causing Cypress to re-run the entire test. Unless you use tricks like using cypress-data-session plugin or splitting a long test, waiting for the entire test to finish just to check one command is frustrating.This is where an internal Cypress command c...