I want to login and set a localStorage
token on the client (specifically jwt
)
How can I accomplish this using cy.request
, as suggested in the Cypress Documentation?
I want to login and set a localStorage
token on the client (specifically jwt
)
How can I accomplish this using cy.request
, as suggested in the Cypress Documentation?
Here's an example of adding a command
cy.login()
that you can use in any Cypress test, or put in abeforeEach
hook.Then in your test: