PromucFlow_constructor/app/client/src/pages/Editor
albinAppsmith fd486f3828
fix: Added tests for EditorTab component (#34834)
## Description

This PR added unit test for EditorTab component.


Fixes #34870

## Automation

/ok-to-test tags="@tag.Sanity, @tag.IDE"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9875712653>
> Commit: e27e1404bc19291e8bc1730fa84819e0174cec66
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9875712653&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity, @tag.IDE`
> Spec:
> <hr>Wed, 10 Jul 2024 14:34:11 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Modified the `EditorTabs` to display a list view when all tabs are
closed and a specific condition involving `currentEntity.id` is met.
- Improved the logic for handling hamburger click events based on the
same condition.

- **Tests**
- Added test cases for rendering different views and components in the
`EditorTabs` component, covering various editor modes such as split
screen and full screen.

- **Chores**
- Added `data-testid` attribute to the `ListContainer` component for
better testability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-11 13:54:49 +05:30
..
__tests__ fix: Auth datasource new api button not working fixed (#32079) 2024-03-27 16:16:52 +05:30
APIEditor feat: cURL import now happens via a modal (#34830) 2024-07-10 14:22:39 +05:30
AppSettingsPane fix: make url selectable (#33952) 2024-06-04 12:28:29 +03:00
CanvasLayoutConversion feat: Move conversion flow under feature flag. (#32490) 2024-04-11 17:21:14 +05:30
CanvasPropertyPane
commons fix: adding branch protection callout (#32707) 2024-04-18 15:13:51 +05:30
CommunityTemplates/Modals chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
CurlImport feat: cURL import now happens via a modal (#34830) 2024-07-10 14:22:39 +05:30
CustomWidgetBuilder chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
DataSourceEditor fix: hide generate page button in DSFormHeader (#34780) 2024-07-08 11:10:09 +01:00
DatasourceInfo fix: hide generate page button in DSFormHeader (#34780) 2024-07-08 11:10:09 +01:00
EditorName chore: Fix missing changes in revert #34313 (#34371) 2024-06-21 11:51:53 +05:30
EntityNavigation
Explorer chore: add tests for anvil modal. (#34347) 2024-06-24 16:28:34 +05:30
FirstTimeUserOnboarding chore: Unify ID extraction regex from browser url (#33925) 2024-06-11 15:14:54 +05:30
GeneratePage chore: update storybook (#32828) 2024-04-22 12:17:28 +03:00
gitSync test: updated flow for GitSync (#34239) 2024-06-28 10:29:12 +05:30
GlobalHotKeys chore: Unify ID extraction regex from browser url (#33925) 2024-06-11 15:14:54 +05:30
IDE fix: Added tests for EditorTab component (#34834) 2024-07-11 13:54:49 +05:30
IntegrationEditor feat: cURL import now happens via a modal (#34830) 2024-07-10 14:22:39 +05:30
JSEditor chore: Move Sidebar to IDE/Components (#34487) 2024-07-10 14:22:58 +05:30
MultiSelectPropertyPane feat: update copy from widgets to UI elements (#32514) 2024-04-22 05:35:24 +01:00
NavigationSettings
PropertyPane chore: Move widget deprecation messages from propertyPaneView to individual Widget configurations (#33759) 2024-06-04 11:55:55 +05:30
QueryEditor feat: Add WDS Table Widget to list of suggested widgets (#34816) 2024-07-10 12:30:09 +05:30
SaaSEditor chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
ThemePropertyPane chore: Don't rely on key order in objects (#34522) 2024-06-27 10:53:55 +05:30
WDSThemePropertyPane chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30
WidgetsEditor fix: preview mode canvas cutoff (#33960) 2024-06-06 12:28:55 +03:00
widgetSidebar fix: Avoid collapsing widget tags when in Anvil (#34718) 2024-07-04 10:51:59 +00:00
ActionSettings.tsx
AppsmithLink.tsx
Canvas.tsx feat: Anvil: Interact with a focused widget's widget name component (#33646) 2024-05-23 15:02:34 +05:30
EditorHeader.tsx fix: revert to passing hook as a prop for EE compatibility (#34367) 2024-06-21 00:26:53 +03:00
EditorSaveIndicator.tsx
EditorShareButton.tsx
EntityNotFoundPane.tsx
FormConfig.tsx
FormControl.tsx
HelpBarInHeader.tsx
HelpButton.tsx chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
index.tsx feat: cURL import now happens via a modal (#34830) 2024-07-10 14:22:39 +05:30
loader.tsx
MainContainerWidthToggles.test.tsx
MainContainerWidthToggles.tsx
Popper.tsx
PropertyPaneHelpButton.tsx chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
RealtimeAppEditors.tsx
RequestConfirmationModal.tsx
ShareApplicationForm.tsx
ToggleModeButton.tsx chore: Add back Preview Mode shortcut (#31602) 2024-03-11 10:02:19 +05:30
utils.tsx feat: side-by-side edit mode hover analytics (#34185) 2024-06-20 14:03:06 +05:30
WidgetsEditorEntityExplorer.tsx