fix changed response code

master
helenanull 2 years ago
parent 5e3667ba35
commit 9a8f77eaf8

@ -19,7 +19,7 @@ Cypress.Commands.add('register', () => {
} }
}) })
.then((response) => { .then((response) => {
expect(response.status).to.eq(200) expect(response.status).to.eq(201)
// user is also logged in after registering // user is also logged in after registering
// so we can just save token // so we can just save token
window.localStorage.setItem('jwtToken', response.body.user.token) window.localStorage.setItem('jwtToken', response.body.user.token)

Loading…
Cancel
Save