## Description Adds tests for Editor Pane Segment's Context Switch where - If no item was selected before, an item is always selected by default - If an item was previously selected, it is selected again when switched to the segment - Add pane state is not stored and switching to the segment will not show that state Fixes #31873 ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!IMPORTANT] > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8477425225> > Commit: `af8469b31f3e0ab26c9f80fcd0bf9745b16a9ce5` > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8477425225&attempt=2" target="_blank">Click here!</a> > All cypress tests have passed 🎉🎉🎉 <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Introduced tests for editor segment context switching in an IDE, including item selection retention and behavior of the "add" state between segment switches. - **Refactor** - Modified the `ImportApp` function call to enhance context maintenance and focus during app import. - **New Features** - Enhanced IDE navigation by adding CSS selectors for active items and implementing a method to retrieve the selected item in the editor's left pane. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| Canvas_Context_Bug_Fixes.js | ||
| Canvas_Context_Property_Pane_1_spec.js | ||
| Canvas_Context_Property_Pane_2_spec.js | ||
| Canvas_Context_Selected_Widgets_spec.js | ||
| Command_Click_Navigation_spec.js | ||
| Editor_Segment_Context_Switching_spec.ts | ||
| MaintainContext&Focus_spec.js | ||