From 9ce164f06562e07595e4fd3e2a871523a6887444 Mon Sep 17 00:00:00 2001 From: psrok1 Date: Mon, 15 Jul 2024 17:26:59 +0200 Subject: [PATCH] Parse JSON response --- tests/frontend/cypress/e2e/sample.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/frontend/cypress/e2e/sample.cy.js b/tests/frontend/cypress/e2e/sample.cy.js index 49d66b62..716f9edd 100644 --- a/tests/frontend/cypress/e2e/sample.cy.js +++ b/tests/frontend/cypress/e2e/sample.cy.js @@ -24,7 +24,7 @@ describe("Sample view test - mwdb-core", function () { body: formData, }).then((response) => { expect(response.status).to.eq(200); - resolve(response.body); + response.json().then((data) => resolve(data)); }); }); });