From b8e367dacdbc91ef922ea4e82a45e3f6bf2aac11 Mon Sep 17 00:00:00 2001 From: Nandan H A Date: Wed, 1 Jul 2020 03:45:13 +0000 Subject: [PATCH] Curl test fix --- .../Smoke_TestSuite/ApiPaneTests/API_CurlPOSTImport_spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/client/cypress/integration/Smoke_TestSuite/ApiPaneTests/API_CurlPOSTImport_spec.js b/app/client/cypress/integration/Smoke_TestSuite/ApiPaneTests/API_CurlPOSTImport_spec.js index 784a655f38..2bb8ef2cb1 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ApiPaneTests/API_CurlPOSTImport_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ApiPaneTests/API_CurlPOSTImport_spec.js @@ -7,16 +7,15 @@ describe("Test curl import flow", function() { cy.NavigateToApiEditor(); cy.get(ApiEditor.curlImage).click({ force: true }); cy.get("textarea").type( - "curl -d { name : 'morpheus',job : 'leader'} -H Content-Type: application/json https://reqres.in/api/users", + "curl -d {name:'morpheus',job:'leader'} -H Content-Type:application/json https://reqres.in/api/users", { force: true, parseSpecialCharSequences: false, }, ); cy.importCurl(); - cy.xpath(apiwidget.EditApiName).should("be.visible"); cy.RunAPI(); - cy.ResponseStatusCheck("200 OK"); + cy.ResponseStatusCheck("201 CREATED"); cy.get("@curlImport").then(response => { cy.expect(response.response.body.responseMeta.success).to.eq(true); cy.get(apiwidget.ApiName)