Test Framework Issues

Cypress

Using the clock feature of cypress causes issues with the rendering of the components. It will override all the 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 only with a Date item.
This will make Cypress to patch only the Date class, but not the setTimeout or requestAnimationFrame functions.

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

Try our new AI skill to implement designs easier and faster with guided generation and best-practice patterns. For more info, visit this page.