hunk.code_window:     });
       cy.openPropertyPane("listwidgetv2");
       // toggle serversidepagination -> true
       cy.togglebar(".t--property-control-serversidepagination input");
       cy.wait("@updateLayout");
       // toggle serversidepagination -> false
       cy.togglebarDisable(".t--property-control-serversidepagination input");
       cy.openPropertyPane("textwidget");
       cy.testJsontextclear("text");
       cy.testJsontext("text", `PageSize {{List1.pageSize}}`);
       cy.wait("@updateLayout");
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace keep keep keep keep
hunk.file_path: app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/ListV2_PageNo_PageSize_spec.js
hunk.type: replace
file: const datasource = require("../../../../locators/DatasourcesEditor.json");
  import { ObjectsRegistry } from "../../../../support/Objects/Registry";
  
  let dataSource = ObjectsRegistry.DataSources;
  let datasourceName;
  
  describe("Postgres datasource test cases", function() {
    beforeEach(() => {
      cy.startRoutesForDatasource();
    });
  
    it("1. Create, test, save then delete a postgres datasource", function() {
      cy.NavigateToDatasourceEditor();
      cy.get(datasource.PostgreSQL).click();
      cy.fillPostgresDatasourceForm();
      cy.testSaveDatasource();
      cy.get("@saveDatasource").then((httpResponse) => {
        datasourceName = JSON.stringify(httpResponse.response.body.data.name);
        dataSource.DeleteDatasouceFromActiveTab(
          datasourceName.replace(/['"]+/g, ""),
        );
      });
    });
  
    it("2. Create with trailing white spaces in host address and database name, test, save then delete a postgres datasource", function() {
      cy.NavigateToDatasourceEditor();
      cy.get(datasource.PostgreSQL).click();
      cy.fillPostgresDatasourceForm(true);
      cy.testSaveDatasource();
      cy.get("@saveDatasource").then((httpResponse) => {
        datasourceName = JSON.stringify(
          httpResponse.response.body.data.name,
        ).replace(/['"]+/g, "");
      });
    });
  
    it("3. Create a new query from the datasource editor", function() {
      cy.get(datasource.createQuery)
        .last()
        .click();
      cy.wait("@createNewApi").should(
        "have.nested.property",
        "response.body.responseMeta.status",
        201,
      );
      cy.deleteQueryUsingContext();
      cy.deleteDatasource(datasourceName);
    });
  });
  