Cypress · Method
cy.tick
cy.tick() advances the fake clock by a chosen number of milliseconds. Use cy.clock() first so Cypress controls native time functions and runs timers scheduled in that interval.
Last updated
- Since
- 0.18.8
Syntax
cy.tick(milliseconds, options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cy.clock()cy.spy()cy.stub()clock.tick(milliseconds)clock.restore()