longestdrive
3 weeks ago
165
2
Testing

Cypress & Laravel - Persist user login

Posted 3 weeks ago by longestdrive

Further journey on cypress

To avoid having to login a user each time on my tests I've been looking at ways of persisting the login session.

Found this guidance on the docs:

https://docs.cypress.io/api/cypress-api/cookies.html#Preserve-Once

What I can't seem to find is the name of the laravel session that I should preserve. How can I find out the name of the session that confirms whether a user is logged in to add it to my exception list?

Thank you

Please sign in or create an account to participate in this conversation.