Skip to main content

Test Framework Issues

Cypress

Using the clock feature of Cypress causes issues with the rendering of components. It will override all built-in timing functions.

cy.clock(moment('2026-03-19T10:00:00Z').valueOf());

If you want to override only the current date, use the second parameter of the clock function and pass an array with only a Date item. This makes Cypress patch only the Date class, but not setTimeout or requestAnimationFrame.

cy.clock(moment('2026-03-19T10:00:00Z').valueOf(), ['Date']);