You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Cypress, you can manipulate the browser time in a test via the clock() function. This is very useful for testing time based logic such as idle logout messages etc.
For example, you can speed up time by calling it like so:
cy.clock(new Date());
cy.tick(600*1000);
//assert some logic for when browser session is idle for 10 mins
I just wondered if there were any plans to add something like this to Playwright? Right now, it feels like one of the killer features of Cypress Playwright currently lacks.
The text was updated successfully, but these errors were encountered:
With Cypress, you can manipulate the browser time in a test via the clock() function. This is very useful for testing time based logic such as idle logout messages etc.
For example, you can speed up time by calling it like so:
I just wondered if there were any plans to add something like this to Playwright? Right now, it feels like one of the killer features of Cypress Playwright currently lacks.
The text was updated successfully, but these errors were encountered: