synpress icon indicating copy to clipboard operation
synpress copied to clipboard

Issues with the cy.clock() function

Open L-TheG opened this issue 3 years ago • 5 comments

Hi,

whenever I try to use the cy.clock() function, metamask seems to stop working. My react site will not recognise that metmask is connected ot react to anything related to metamask. Using the cy.tick() method does not change anything no matter how many or how long the tick is. Is this a know issue?

Thanks!

L-TheG avatar Apr 24 '22 10:04 L-TheG

@L-TheG Did you ever figure out the issues with cy.clock and metamask?

marshall2112 avatar May 22 '22 21:05 marshall2112

Unfortunately not. I had to skip the testcases relying on exact timing

L-TheG avatar May 23 '22 10:05 L-TheG

Shoot, ok thanks. I have not found any solution either.

marshall2112 avatar May 23 '22 13:05 marshall2112

Hi, Any update about this issue? I'm having this exact issue

carlosfebres avatar Feb 28 '23 07:02 carlosfebres

Using cy.clock(new Date(), ["Date"]) instead of just cy.clock() worked for me.

carlosfebres avatar Feb 28 '23 07:02 carlosfebres