March 2025posted on 03.10.2025Cypress cy.clock() cy.clock() allows you to control time in your Cypress test: cy.clock(); cy.intercept('GET', '/pokemon').as('pokemon'); // 1st call cy.wait('@pokemon'); // forward 10 seconds and wait for next `/pokemon` request cy.tick(10_000); cy.wait('@pokemon'); No reactions yet
Cypress cy.clock()
cy.clock() allows you to control time in your Cypress test: