hunk.code_window:                         }
                           if(pageId2.equals(page.getId())){
                               assertTrue(page.getOrder() == 2);
                           }
                           if(pageId1.equals(page.getId())){
  
hunk.labels: keep keep replace keep keep
hunk.after_edit:                             assertThat(page.getOrder()).isEqualTo(2);
  
hunk.file_path: app/server/appsmith-server/src/test/java/com/appsmith/server/services/PageServiceTest.java
hunk.type: replace
file: import { formValueSelector, reduxForm } from "redux-form";
  import { QUERY_EDITOR_FORM_NAME } from "constants/forms";
  import { Action } from "entities/Action";
  import { connect } from "react-redux";
  import { AppState } from "reducers";
  import {
    getPluginResponseTypes,
    getPluginDocumentationLinks,
  } from "selectors/entitiesSelector";
  import { EditorJSONtoForm, EditorJSONtoFormProps } from "./EditorJSONtoForm";
  import { getFormValues } from "redux-form";
  import { QueryAction } from "entities/Action";
  
  const valueSelector = formValueSelector(QUERY_EDITOR_FORM_NAME);
  const mapStateToProps = (state: AppState) => {
    const actionName = valueSelector(state, "name");
    const pluginId = valueSelector(state, "datasource.pluginId");
    const selectedDbId = valueSelector(state, "datasource.id");
  
    const responseTypes = getPluginResponseTypes(state);
    const documentationLinks = getPluginDocumentationLinks(state);
    const formData = getFormValues(QUERY_EDITOR_FORM_NAME)(state) as QueryAction;
  
    return {
      actionName,
      pluginId,
      selectedDbId,
      responseType: responseTypes[pluginId],
      documentationLink: documentationLinks[pluginId],
      formName: QUERY_EDITOR_FORM_NAME,
      formData: formData,
    };
  };
  
  export default connect(mapStateToProps)(
    reduxForm<Action, EditorJSONtoFormProps>({
      form: QUERY_EDITOR_FORM_NAME,
      enableReinitialize: true,
    })(EditorJSONtoForm),
  );
  