Synthetixio / synpress

Synpress is e2e testing framework based on Cypress.io and playwright with support for metamask.
https://synpress.io
607 stars 194 forks source link

Issues with the cy.clock() function #399

Open L-TheG opened 2 years ago

L-TheG commented 2 years ago

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!

marshall2112 commented 2 years ago

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

L-TheG commented 2 years ago

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

marshall2112 commented 2 years ago

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

carlosfebres commented 1 year ago

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

carlosfebres commented 1 year ago

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