Cypress testing #288
Unanswered
hameleonka
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Ah okay, you are using https://idletimer.dev/docs/getting-started/testing#mock-timers Let me know if that resolves the issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm trying to test with Cypress that the idle timeout modal appears after 15 min of user inactivity.
I'm using
cy.clock
andcy.tick
to avoid waiting for actual 15 minModal doesn't appear after
cy.tick(IDLE_TIMEOUT)
and test fails.Seems like
cy.clock
doesn't override timing functions ofreact-idle-timer
and the modal will appear after actual 15 min.Here is my idle timer instantiation:
Is there any way to test it?
Thanks for any tips!
Beta Was this translation helpful? Give feedback.
All reactions