Cypress - Authentication and Sessions
You wrote this Cypress code to cache login but tests still run login steps every time:
beforeEach(() => {
cy.session('user', () => {
cy.visit('/login')
cy.get('#username').type('user')
cy.get('#password').type('pass')
cy.get('button[type=submit]').click()
})
})
What is the likely mistake?