From eae015edd405d396157632c2b10a66ffdedbc403 Mon Sep 17 00:00:00 2001 From: Antonio Rito Silva Date: Tue, 21 Nov 2023 16:05:34 +0000 Subject: [PATCH] fix string conversion, due to axios lib upgrade --- frontend/src/services/RemoteServices.ts | 6 +++++- frontend/tests/e2e/support/commands.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/services/RemoteServices.ts b/frontend/src/services/RemoteServices.ts index 249046c01..0cec70242 100644 --- a/frontend/src/services/RemoteServices.ts +++ b/frontend/src/services/RemoteServices.ts @@ -391,7 +391,11 @@ export default class RemoteServices { status: String ): Promise { return httpClient - .post(`/questions/${questionId}/set-status`, status, {}) + .post(`/questions/${questionId}/set-status`, status, { + headers: { + 'Content-Type': 'text/plain', + }, + }) .then((response) => { return new Question(response.data); }) diff --git a/frontend/tests/e2e/support/commands.js b/frontend/tests/e2e/support/commands.js index e74cebc00..12a6e0e1c 100644 --- a/frontend/tests/e2e/support/commands.js +++ b/frontend/tests/e2e/support/commands.js @@ -121,7 +121,7 @@ Cypress.Commands.add('time', (date, day, type) => { cy.get( get + ' > .calendar > .datepicker-controls > .text-right > .datepicker-button > svg > path' - ).click({ force: true }); + ).click({ force: true}); cy.wait(500); cy.get(