hunk.code_window:       orgid,
         Cypress.env("TESTUSERNAME2"),
         homePage.viewerRole,
       );
       cy.navigateToOrgSettings(orgid);
       cy.get(homePage.emailList).then(function($list) {
         expect($list).to.have.length(3);
         expect($list.eq(0)).to.contain(Cypress.env("USERNAME"));
         expect($list.eq(1)).to.contain(Cypress.env("TESTUSERNAME1"));
         expect($list.eq(2)).to.contain(Cypress.env("TESTUSERNAME2"));
       });
     });
     it("login as Org owner and delete App ", function() {
       cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
       cy.visit("/applications");
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:     cy.LogOut();
  
hunk.file_path: app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js
hunk.type: replace
file: import { createSelector } from "reselect";
  import { AppState } from "reducers";
  import { FlattenedWidgetProps } from "reducers/entityReducers/canvasWidgetsReducer";
  import { WidgetTypes } from "constants/WidgetConstants";
  import { getExistingWidgetNames, getWidgetNamePrefix } from "sagas/selectors";
  import { getNextEntityName } from "utils/AppsmithUtils";
  
  const getCanvasWidgets = (state: AppState) => state.entities.canvasWidgets;
  export const getModalDropdownList = createSelector(
    getCanvasWidgets,
    widgets => {
      const modalWidgets = Object.values(widgets).filter(
        (widget: FlattenedWidgetProps) =>
          widget.type === WidgetTypes.MODAL_WIDGET,
      );
      if (modalWidgets.length === 0) return undefined;
  
      return modalWidgets.map((widget: FlattenedWidgetProps) => ({
        id: widget.widgetId,
        label: widget.widgetName,
        value: `${widget.widgetName}`,
      }));
    },
  );
  
  const getModalNamePrefix = (state: AppState) =>
    getWidgetNamePrefix(state, WidgetTypes.MODAL_WIDGET);
  
  export const getNextModalName = createSelector(
    getExistingWidgetNames,
    getModalNamePrefix,
    (names, prefix) => getNextEntityName(prefix, names),
  );
  