From da195a6ca07b13c8d7cc11ec4435f6d5d71de4b6 Mon Sep 17 00:00:00 2001 From: Parthvi12 <80334441+Parthvi12@users.noreply.github.com> Date: Mon, 30 May 2022 12:38:16 +0530 Subject: [PATCH] remove third party api in cypress test (#14154) --- .../ClientSideTests/ApiPaneTests/API_Search_spec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Search_spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Search_spec.js index 3a03d62913..44acae6220 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Search_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/ApiPaneTests/API_Search_spec.js @@ -1,7 +1,9 @@ const testdata = require("../../../../fixtures/testdata.json"); import ApiEditor from "../../../../locators/ApiEditor"; -const testUrl = "http://hp-api.herokuapp.com/api/characters/students"; +const testUrl1 = + "http://localhost:5001/v1/dynamicrecords/generaterecords?records=10"; +const testUrl2 = "http://localhost:5001/v1/dynamicrecords/getstudents"; describe("API Panel Test Functionality ", function() { it("Test Search API fetaure", function() { @@ -24,7 +26,9 @@ describe("API Panel Test Functionality ", function() { it("if suggested widgets section alwas appears for all 3 modes", function() { cy.log("Login Successful"); - cy.createAndFillApi(testUrl, ""); + cy.createAndFillApi(testUrl1, ""); + cy.RunAPI(); + cy.createAndFillApi(testUrl2, ""); cy.RunAPI(); cy.get(ApiEditor.jsonResponseTab).click(); cy.checkIfApiPaneIsVisible();