PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide/IDE
Hetu Nandu 7dac89098c
chore: Add Editor Pane segments context switch tests (#32224)
## 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 -->
2024-03-29 11:48:59 +05:30
..
Canvas_Context_Bug_Fixes.js feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Canvas_Context_Property_Pane_1_spec.js fix: property pane collapse expand icon issue fixed (#32094) 2024-03-27 15:12:15 +05:30
Canvas_Context_Property_Pane_2_spec.js fix: property pane collapse expand icon issue fixed (#32094) 2024-03-27 15:12:15 +05:30
Canvas_Context_Selected_Widgets_spec.js feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Command_Click_Navigation_spec.js feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Editor_Segment_Context_Switching_spec.ts chore: Add Editor Pane segments context switch tests (#32224) 2024-03-29 11:48:59 +05:30
MaintainContext&Focus_spec.js chore: Add Editor Pane segments context switch tests (#32224) 2024-03-29 11:48:59 +05:30