Cypress - Test Organization and Patterns
What is wrong with this Cypress API-first setup code?
cy.request('POST', '/api/login', {username: 'user', password: 'pass'})
.then((response) => {
cy.setCookie('auth', response.token)
})