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.
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.