okta / okta-auth-js

The official js wrapper around Okta's auth API
Other
453 stars 265 forks source link

Cypress tests with Okta Authentication issues #951

Open gemmie opened 3 years ago

gemmie commented 3 years ago

While running Cypress tests with Okta Authentication, after successfully mocking logging in or implementing Okta Authentication according to Cypress documentation, the token in localStorage gets overwritten to {} - which causes logging out and tests failing.

In addition this behaviour is very inconsistent, as once in a dozen of tries the test pass.

oleksandrpravosudko-okta commented 3 years ago

Hi @gemmie - there isn't much we can diagnose with the provided description. Can you share a minimal repro setup for this issue?