https://cypress.io logo
Hello everyone , Hope you're all doing well. I am...
# e2e-testing
q
Hello everyone , Hope you're all doing well. I am trying to automate a user flow where there are two test cases, Test Case 1 Redirect to the site input email and password for login Test Case 2 Navigate to the Documents section. Select Dates Test Case 1 passes, however when it starts executing the second test case , it redirects to the login page. Can anyone help?
f
Cypress clears the session between test cases so this isn't surprising. You can reuse the session cookies from the first case by utilising the
cy.session
api https://docs.cypress.io/api/commands/session
q
Thanks a lot . Let me try