Cypress - Authentication and Sessions
Examine this code snippet:
What is the issue here?
cy.session('guest', () => {
cy.visit('/login')
cy.get('#user').type('guest')
cy.get('#pass').type('guestpass')
cy.get('button.submit').click()
})
cy.session('guest', () => {
cy.visit('/dashboard')
})What is the issue here?
