From 28a4b4a6d64461495192c312291b84a3f36daaf0 Mon Sep 17 00:00:00 2001 From: Apeksha Bhosale <7846888+ApekshaBhosale@users.noreply.github.com> Date: Tue, 23 Mar 2021 16:55:21 +0530 Subject: [PATCH] test case fixed it was checking 3rd key:value pair for content type but with changes it will added to first empty field (0th) --- .../ClientSideTests/ApiPaneTests/API_Edit_spec.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Edit_spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Edit_spec.js index 01e2f30fe4..d46a3b1ec0 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Edit_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Edit_spec.js @@ -29,17 +29,14 @@ describe("API Panel Test Functionality", function() { cy.NavigateToAPI_Panel(); cy.CreateAPI("CrashTestAPI"); cy.SelectAction(testdata.postAction); - cy.xpath(apiwidget.postDefaultContentTypeHeaderKey) + cy.xpath(apiwidget.headerKey) .first() .focus({ force: true }) .type("{uparrow}", { force: true }) .type("{ctrl}{shift}{downarrow}", { force: true }) .type("{backspace}", { force: true }); // assert so that this fails - cy.xpath(apiwidget.postDefaultContentTypeHeaderKey).should("be.visible"); - cy.xpath(apiwidget.postDefaultContentTypeHeaderKey).should( - "have.value", - "", - ); + cy.xpath(apiwidget.headerKey).should("be.visible"); + cy.xpath(apiwidget.headerKey).should("have.value", ""); }); });