https://cypress.io logo
cy.tick() doesn't work. Anything else I can use th...
# i-need-help
s
I am following along with Gleb Bahmutov's course on cypress on the website blazemeter.com. There he shows how the cy.clock and cy.tick commands work. But I think that the sudoku app has changed since he did the video because it doesn't work the same anymore. I think that cy.tick doesn't work when the app uses the 'moment' dependency to set the timer. Is there anything else I can use in order to set the timer to a specific value.
I am hoping that @gray-kilobyte-89541 responds to this thread. That would be so nice. I also found a problem in the next page of the course. That page is called Optimizing and doesn't work for me since the scripts in package.json are connected to npm and doesnt work with npx. The course is still helpful but it could use an update. What works for me is writing "npx cypress open --e2e --browser chrome" in the terminal. What doesn't work is having the script: "cy:open": "cypress open", since there is no way (that I know of) to use it.
g
npm run cy:open
s
I am a bit embarrassed because now it seems to work fine. Sorry! Any thoughts about the cy.tick()? Heard of the problem before? Did the soduko app change after you did the video?
g
Yes, I heard and even seen this. I don't know why this happens, but it is really weird, I think this is a Cypress bug to be honest
s
Thanks a lot for answers. Oh and by the way… have you noticed that the videos on the course is really bad quality sometimes? It is like the video doesn’t render the pictures in time which causes them to melt together and I can’t see anything
g
yup, but unfortunately i don't host or control those videos, I can only remake and recode the videos from the courses I host on https://cypress.tips/courses
s
aha, I would recommend hosting the free version on that website as well since the poor video will deter people from buying the other courses. Otherwise I think it is a great course so far. It is going too fast sometimes though and I have to do a lot of pausing and rewinding in order to keep up
g
I will just remove the link, no sense in even pointing people to it. For other courses, there are lots of free lessons for each giving you a sense of the lessons