From 9a8f77eaf8cb1555193b6c560ece6b9ec1f8b406 Mon Sep 17 00:00:00 2001 From: helenanull Date: Mon, 17 Jul 2023 10:21:49 +0300 Subject: [PATCH] fix changed response code --- cypress/support/register.cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/register.cmd.js b/cypress/support/register.cmd.js index 0491916..549af92 100644 --- a/cypress/support/register.cmd.js +++ b/cypress/support/register.cmd.js @@ -19,7 +19,7 @@ Cypress.Commands.add('register', () => { } }) .then((response) => { - expect(response.status).to.eq(200) + expect(response.status).to.eq(201) // user is also logged in after registering // so we can just save token window.localStorage.setItem('jwtToken', response.body.user.token)