remove third party api in cypress test (#14154)

This commit is contained in:
Parthvi12 2022-05-30 12:38:16 +05:30 committed by GitHub
parent d669cf4e4d
commit da195a6ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();