hunk.code_window:           "configProperty": "actionConfiguration.body",
             "controlType": "QUERY_DYNAMIC_TEXT",
             "evaluationSubstitutionType": "TEMPLATE",
             "hidden": {
               "path": "actionConfiguration.pluginSpecifiedTemplates[0].value",
               "comparison": "EQUALS",
               "value": "true"
             }
           }
         ]
       }
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:             "comparison": "IN",
               "value": [
                 "true",
                 true
               ]
  
hunk.file_path: app/server/appsmith-plugins/postgresPlugin/src/main/resources/editor.json
hunk.type: replace
file: const testdata = require("../../../../fixtures/testdata.json");
  const apiwidget = require("../../../../locators/apiWidgetslocator.json");
  
  describe("API Panel Test Functionality", function() {
    it("Test Search API fetaure", function() {
      cy.log("Login Successful");
      cy.NavigateToAPI_Panel();
      cy.log("Navigation to API Panel screen successful");
      cy.CreateAPI("FirstAPI");
      cy.get("textarea").should(
        "have.attr",
        "placeholder",
        "https://mock-api.appsmith.com/users",
      );
      cy.log("Creation of FirstAPI Action successful");
      cy.enterDatasourceAndPath(testdata.baseUrl, testdata.methods);
      cy.SaveAndRunAPI();
      cy.validateRequest(testdata.baseUrl, testdata.methods, testdata.Get);
      cy.ResponseStatusCheck(testdata.successStatusCode);
      cy.SearchEntityandOpen("FirstAPI");
      cy.EditApiName("SecondAPI");
      cy.ClearSearch();
      cy.SearchEntityandOpen("SecondAPI");
      cy.DeleteAPI();
      cy.ClearSearch();
    });
  
    it("Should not crash on key delete", function() {
      cy.NavigateToAPI_Panel();
      cy.CreateAPI("CrashTestAPI");
      cy.SelectAction(testdata.postAction);
      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.headerKey).should("be.visible");
      cy.xpath(apiwidget.headerKey).should("have.value", "");
    });
  });
  