Clock() and tick() not working with a setTimeout #24196
Unanswered
rebeccarothschild
asked this question in
Questions and Help
Replies: 1 comment
-
Looks good so far, I just implemented something like this because I found this problem here and it works for me, fast forward a I have two suggestion:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm E2E testing some application code that has a setTimeout call that delays a network request which then triggers a component to display. I'm trying to speed up time to skip the timeout but I haven't gotten it to work. Is there some limitations to how clock and tick can work with async methods? Below is an example of what I'm trying to do.
spec.js:
setTimeout call:
Using Cypress 10.3.0
Beta Was this translation helpful? Give feedback.
All reactions