From 00ea30ff3143b2f5feb74afac449394b3c8ca243 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Mon, 23 Aug 2021 10:07:57 +0200 Subject: [PATCH] fix: response code for /userDataStore has been restored to 201 (#1910) Backend restored the code to 201 from 200 Reverting this PR: #1896. (not an exact match, thus a new commit rather than a "revert" commit) --- cypress/integration/edit/edit_dashboard/show_description.js | 2 +- .../view/view_errors/error_while_show_description.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/edit/edit_dashboard/show_description.js b/cypress/integration/edit/edit_dashboard/show_description.js index 22f35719a..f6084b1f9 100644 --- a/cypress/integration/edit/edit_dashboard/show_description.js +++ b/cypress/integration/edit/edit_dashboard/show_description.js @@ -2,7 +2,7 @@ import { When, Then } from 'cypress-cucumber-preprocessor/steps' import { clickViewActionButton } from '../../../elements/viewDashboard' import { getApiBaseUrl } from '../../../support/server/utils' -const SHOW_DESC_RESP_CODE_SUCCESS = 200 +const SHOW_DESC_RESP_CODE_SUCCESS = 201 const SHOW_DESC_RESP_CODE_FAIL = 409 before(() => { diff --git a/cypress/integration/view/view_errors/error_while_show_description.js b/cypress/integration/view/view_errors/error_while_show_description.js index 3e32b08a0..07e09ffd3 100644 --- a/cypress/integration/view/view_errors/error_while_show_description.js +++ b/cypress/integration/view/view_errors/error_while_show_description.js @@ -12,7 +12,7 @@ before(() => { 'content-type': 'application/json', }, body: 'false', - }).then(response => expect(response.status).to.equal(200)) + }).then(response => expect(response.status).to.equal(201)) }) When('clicking to show description fails', () => {