hunk.code_window:     cy.get("label")
         .contains("Query Params")
         .siblings()
         .find(".CodeEditorTarget")
         .then(($el) => cy.updateCodeInput($el, "{{{ test: '123' }}}"));
       agHelper.ClickButton("Submit");
       cy.url().should("include", "a=b");
       cy.url().should("include", "test=123");
       ee.SelectEntityByName("Page1");
       deployMode.DeployApp();
       agHelper.ClickButton("Submit");
       cy.get(".bp3-heading").contains("This page seems to be blank");
       cy.url().should("include", "a=b");
       cy.url().should("include", "test=123");
       deployMode.NavigateBacktoEditor();
     });
     it("2. Gives error message when invalid word is entered in the url tab of navigate to", () => {
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace keep keep keep
hunk.after_edit:       .then(($el) => {
           cy.updateCodeInput($el, "{{{ test: '123' }}}");
           agHelper.Sleep(2000);
           agHelper.ClickButton("Submit");
           cy.url().should("include", "a=b");
           cy.url().should("include", "test=123");
           ee.SelectEntityByName("Page1");
           deployMode.DeployApp();
           agHelper.ClickButton("Submit");
           cy.get(".bp3-heading").contains("This page seems to be blank");
           cy.url().should("include", "a=b");
           cy.url().should("include", "test=123");
           deployMode.NavigateBacktoEditor();
         });
  
hunk.file_path: app/client/cypress/integration/Regression_TestSuite/ClientSideTests/ActionExecution/NavigateTo_spec.ts
hunk.type: replace
file: import _ from "lodash";
  import { sourceDataArrayValidation } from "./validations";
  
  describe("sourceDataArrayValidation", () => {
    it("Should test with valid values", () => {
      const mockSourceData = [
        {
          step: "#1",
          task: "Drop a table",
          status: "✅",
          action: "",
        },
        {
          step: "#2",
          task: "Create a query fetch_users with the Mock DB",
          status: "--",
          action: "",
        },
        {
          step: "#3",
          task: "Bind the query using => fetch_users.data",
          status: "--",
          action: "",
        },
      ];
  
      const result = sourceDataArrayValidation(
        mockSourceData,
        undefined as any,
        _,
      );
      const expected = {
        isValid: true,
        parsed: mockSourceData,
        messages: [""],
      };
      expect(result).toStrictEqual(expected);
    });
  
    it("Should test when sourceData has a length more than 10", () => {
      const mockSourceData = Array(11).fill((_: null, index: number) => {
        return {
          step: `#${index}`,
          task: `Task ${index}`,
          status: "--",
          action: "",
        };
      });
  
      const result = sourceDataArrayValidation(
        mockSourceData,
        undefined as any,
        _,
      );
      const expected = {
        isValid: false,
        parsed: [],
        messages: ["Source data cannot have more than 10 items"],
      };
      expect(result).toStrictEqual(expected);
    });
  
    it("Should test when sourceData is not an array", () => {
      const mockSourceData = {
        step: "#1",
        task: "Drop a table",
        status: "✅",
        action: "",
      };
  
      const result = sourceDataArrayValidation(
        mockSourceData,
        undefined as any,
        _,
      );
      const expected = {
        isValid: false,
        parsed: [],
        messages: ["This value does not evaluate to type Array"],
      };
      expect(result).toStrictEqual(expected);
    });
  });
  