https://cypress.io logo
cy.visit() - first login session is taking too lon...
# i-need-help
f
I use cy.session to cache the session and improve the login timing but it is taking too long the first time to login, also in headless mode is not considering the session, a test that last 30s is taking 1.30min to finish
e
Try
cy.saveLocalStorage
instead. Call your login endpoint via
cy.intercept
in a before and then save the token you need in that local storage command.
f
thanks a lot!