PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide
albinAppsmith b68f349eb6
fix: Navigating to page, navigate to last used segment instead of canvas (#30652)
## Description

As of now, when user clicking on page, user gets navigated to UI first
then will it will take to the recent tab. This PR will navigate directly
to the recent segment.

#### PR fixes following issue(s)
Fixes https://github.com/appsmithorg/appsmith/issues/30651


#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


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


- **New Features**
- Enhanced IDE with additional parameter support in
`useCurrentAppState`, `useSegmentNavigation`, and `useGetPageFocusUrl`
functions for improved state management.
- **Tests**
- Improved Cypress E2E tests across various modules (Regression,
ClientSide, Apps, Git, Sanity) with updated navigation and control flow
using `PageLeftPane.switchSegment` for more precise page and segment
selection during testing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Hetu Nandu <hetu@appsmith.com>
2024-02-05 10:05:07 +05:30
..
ActionExecution feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
AdminSettings feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
Anvil chore: Anvil cypress tests (#30580) 2024-01-31 11:02:38 +05:30
AppNavigation test: Cypress | Flaky fixes + Replacing static waits (#30067) 2024-01-12 12:00:12 +05:30
AuditLogs test: Cypress | Replace static with Dynamic waits - Part IV (#29641) 2023-12-15 18:02:43 +05:30
Autocomplete feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Binding feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
Branding feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
BugTests fix: schema plus button for a table is visible after template menu is opened (#30849) 2024-02-02 15:26:26 +05:30
CodeComment test: Cypress - added tag - @tag.AutoHeight, @tag.IDE (#29670) 2023-12-18 12:45:44 +05:30
CommunityTemplate test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790) 2023-12-27 16:50:36 +05:30
Debugger test: Cypress - separated exclude airgap cases and tagged them (#30588) 2024-01-24 16:47:58 +05:30
DynamicHeight feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Editor test: Cypress - separated exclude airgap cases and tagged them (#30588) 2024-01-24 16:47:58 +05:30
EmbedSettings test: Cypress | Added Dynamic checks for Flaky fix + Cypress upgrade (#30840) 2024-02-02 16:01:59 +05:30
ExplorerTests fix: Navigating to page, navigate to last used segment instead of canvas (#30652) 2024-02-05 10:05:07 +05:30
Fork test: Fixing flaky specs (#30818) 2024-02-02 18:57:13 +05:30
FormLogin feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
FormNativeToRawTests
Git fix: Navigating to page, navigate to last used segment instead of canvas (#30652) 2024-02-05 10:05:07 +05:30
Github test: Cypress - separated exclude airgap cases and tagged them (#30588) 2024-01-24 16:47:58 +05:30
Google test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790) 2023-12-27 16:50:36 +05:30
Homepage feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
IDE feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
JSLibrary feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
JSObject feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Linting feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
MobileResponsiveTests chore: remove auto focus for search bar in widget explorer (#30606) 2024-01-31 09:01:12 -05:00
Onboarding test: Fixing flaky specs (#30818) 2024-02-02 18:57:13 +05:30
OneClickBinding test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790) 2023-12-27 16:50:36 +05:30
OtherUIFeatures test: Cypress | Helpers improved + Flaky fixes (#30735) 2024-02-01 16:42:53 +05:30
PartialImportExport chore: Add cypress specs for partial import and export functionality (#30166) 2024-01-17 11:20:01 +05:30
PeekOverlay feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Performance feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
ProductRamps feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
PropertyPane test: Cypress - added tags - @tag.JS, @tag.Perf, @tag.Settings, @tag.PropertyPane, @tag.Theme (#29682) 2023-12-18 17:18:23 +05:30
PublishedApps test: Cypress - added tags - @tag.JS, @tag.Perf, @tag.Settings, @tag.PropertyPane, @tag.Theme (#29682) 2023-12-18 17:18:23 +05:30
Refactoring feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
SetProperty fix: Navigating to page, navigate to last used segment instead of canvas (#30652) 2024-02-05 10:05:07 +05:30
SettingsPane test: Cypress - added tags - @tag.JS, @tag.Perf, @tag.Settings, @tag.PropertyPane, @tag.Theme (#29682) 2023-12-18 17:18:23 +05:30
Templates test: Cypress | Added Dynamic checks for Flaky fix + Cypress upgrade (#30840) 2024-02-02 16:01:59 +05:30
ThemingTests feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
UserProfile feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
VisualTests feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
Walkthrough test: Cypress - added tags - @tag.Settings, @tag.Binding (#29684) 2023-12-18 17:03:54 +05:30
Widgets test: Cypress | Skip bug test from MultiSelect5_spec.ts (#30871) 2024-02-02 18:01:05 +05:30
Workspace test: Cypress | Helpers improved + Flaky fixes (#30735) 2024-02-01 16:42:53 +05:30