hunk.code_window:   setWidgetAncestry,
     shiftSelectWidgets,
     unselectWidget,
   } from "sagas/WidgetSelectUtils";
   import { inGuidedTour } from "selectors/onboardingSelectors";
   import { flashElementsById, quickScrollToWidget } from "utils/helpers";
   import { areArraysEqual } from "utils/AppsmithUtils";
   import { APP_MODE } from "entities/App";
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.file_path: app/client/src/sagas/WidgetSelectionSagas.ts
hunk.type: replace
file: import React from "react";
  import "@testing-library/jest-dom";
  import AutoHeightLimitOverlayDisplay from "./AutoHeightLimitOverlayDisplay";
  import "jest-styled-components";
  import renderer from "react-test-renderer";
  
  describe("<AutoHeightLimitOverlayDisplay />", () => {
    it("should have display none when isActive is false", () => {
      const tree = renderer
        .create(<AutoHeightLimitOverlayDisplay height={0} isActive={false} />)
        .toJSON();
      expect(tree).toHaveStyleRule("display", "none");
    });
  
    it("should have display block when isActive is true", () => {
      const tree = renderer
        .create(<AutoHeightLimitOverlayDisplay height={0} isActive />)
        .toJSON();
      expect(tree).toHaveStyleRule("display", "block");
    });
  
    it("should have height style equal to the height passed in props", () => {
      const tree = renderer
        .create(<AutoHeightLimitOverlayDisplay height={10} isActive />)
        .toJSON();
      expect(tree).toHaveStyleRule("height", "10px");
    });
  });
  