Cypress - Authentication and Sessions
What is wrong with this programmatic login code?
cy.request({
method: 'POST',
url: '/login',
body: { username: 'user', password: 'pass' }
}).then((response) => {
cy.setCookie('authToken', response.body.token);
});