Cypress - Authentication and Sessions
Identify the error in the following code using
cy.session():cy.session('user', () => {
cy.visit('/login')
cy.get('#user').type('test')
cy.get('#pass').type('1234')
cy.get('button').click()
})
cy.session('user', () => {
cy.visit('/profile')
})