hunk.code_window:                     );
                       return Mono.empty();
                   });
       }
       /** This function walks thorugh all the pages and reorders them and updates the order as per the user preference.
        * A page can be moved up or down from the current position and accordingly the order of the remaining page changes.
        * @param applicationId The id of the Application
        * @param pageId Targetted page id
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     /** This function walks through all the pages and reorders them and updates the order as per the user preference.
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationPageServiceImpl.java
hunk.type: replace
file: import { queryHelpers, buildQueries } from "@testing-library/react";
  
  // The queryAllByAttribute is a shortcut for attribute-based matchers
  // You can also use document.querySelector or a combination of existing
  // testing library utilities to find matching nodes for your query
  const queryAllByDataCy = (...args) =>
    queryHelpers.queryAllByAttribute("data-cy", ...args);
  
  const getMultipleError = (c, dataCyValue) =>
    `Found multiple elements with the data-cy attribute of: ${dataCyValue}`;
  const getMissingError = (c, dataCyValue) =>
    `Unable to find an element with the data-cy attribute of: ${dataCyValue}`;
  
  const [
    queryByDataCy,
    getAllByDataCy,
    getByDataCy,
    findAllByDataCy,
    findByDataCy,
  ] = buildQueries(queryAllByDataCy, getMultipleError, getMissingError);
  
  export {
    queryByDataCy,
    queryAllByDataCy,
    getByDataCy,
    getAllByDataCy,
    findAllByDataCy,
    findByDataCy,
  };
  