PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide
shadabbuchh 199233be47
test: new test case for renaming JS Object (#38361)
## Description

This PR adds a test case for the bug:
https://github.com/appsmithorg/appsmith/issues/38207

This PR tests the issue where renaming a JS Object via the context menu
caused the focus to shift to another tab in the editor.

Changes:

- Added test cases to validate that focus remains on the current tab
while renaming JS Objects.
- Verified the functionality by renaming multiple JS Objects and
ensuring the changes are reflected without altering tab focus.


## Automation

/ok-to-test tags="@tag.JS"

### 🔍 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/12492186342>
> Commit: 5611d13c3a8d6fd26598a463b25e370e381323f5
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12492186342&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.JS`
> Spec:
> <hr>Wed, 25 Dec 2024 11:16:53 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**
- Introduced a method to rename JavaScript objects via the context menu
in the JSEditor.
	- Added a property for referencing the list of JavaScript objects.

- **Tests**
- Implemented a new test suite to validate the renaming functionality
and ensure focus remains on the correct tab during the process.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-25 16:53:44 +05:30
..
ActionExecution test: Added a new test case for 33601 (#38234) 2024-12-19 08:48:11 +05:30
AdminSettings test: Admin setting test cases (#38172) 2024-12-23 18:37:43 +05:30
Anvil chore: reverted changes (#38300) 2024-12-23 09:12:27 +05:30
AppNavigation chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
AuditLogs chore: Make edit launch buttons as links & add upgrade ramps for session timeout setting (#31862) 2024-03-21 15:37:13 +05:30
Autocomplete feat: Add currentPage, workspace, application name to appsmith context (#38114) 2024-12-23 16:33:50 +05:30
Binding feat: unified response view component (#37897) 2024-12-10 10:06:57 +03:00
Branding test: Updating the locator for upgrade button on admin settings (#33872) 2024-05-31 21:07:28 +05:30
BugTests chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
CodeComment chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
CommunityTemplate chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
Debugger chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
DynamicHeight chore: removed old flags for airgap instances (#36609) 2024-10-07 15:26:25 +05:30
Editor
EmbedSettings fix: Updated fix for embedSettings spec (#38195) 2024-12-17 13:21:05 +05:30
ExplorerTests fix: Renaming tests with error expectations (#38021) 2024-12-07 17:28:42 +05:30
Fork chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
FormLogin chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
FormNativeToRawTests fix: commands title changed to command for each datasource query editor forms (#32526) 2024-04-10 17:05:01 +05:30
Git feat: Enable new toolbar for cypress (#37148) 2024-12-03 09:21:43 +05:30
Github chore: Updating the login and signup page for cloud hosting as per new design (#32641) 2024-04-17 21:46:44 +05:30
Google chore: Updating the login and signup page for cloud hosting as per new design (#32641) 2024-04-17 21:46:44 +05:30
Homepage chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
IDE fix: Tab navigation issue in multi page apps (#38272) 2024-12-20 16:26:54 +05:30
JSLibrary test: adding tests for custom lib (#37901) 2024-12-11 10:56:38 +05:30
JSObject test: new test case for renaming JS Object (#38361) 2024-12-25 16:53:44 +05:30
Linting feat: Enable new toolbar for cypress (#37148) 2024-12-03 09:21:43 +05:30
MobileResponsiveTests test: updated tests with aghelper table methods (#33737) 2024-05-31 14:01:06 +05:30
Onboarding chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
OneClickBinding fix: Property control spec (#38004) 2024-12-09 20:56:41 +05:30
OtherUIFeatures chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
PartialImportExport test: partial import export areas covered (#37661) 2024-11-28 23:48:53 +05:30
PeekOverlay chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
Performance chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
ProductRamps chore: rm dr ce (#34765) 2024-07-31 08:24:51 +05:30
PropertyPane
PublishedApps chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
Refactoring chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
SetProperty chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
SettingsPane chore: Added sanity and tags for blank tag specs (#36421) 2024-09-19 18:21:58 +05:30
Templates test: added new case (#38308) 2024-12-23 18:51:16 +05:30
ThemingTests chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
UserProfile
VisualTests feat: Enable new toolbar for cypress (#37148) 2024-12-03 09:21:43 +05:30
Widgets feat: add alignment property in style pane for table button cell (#38223) 2024-12-24 07:18:56 +01:00
Workspace chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30