PromucFlow_constructor/app/client/cypress
Hetu Nandu 721767d742
feat: URL Navigation for Widgets (#20202)
## Description

Widget selection is driven by URL changes. This would fix browser
navigation for users as they can use browser back/forward buttons to
travel across older contexts on Appsmith.

> Fixing browser URL navigation for widgets

Fixes #19571


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

> Please delete options that are not relevant.

- New feature (non-breaking change which adds functionality)


## How Has This Been Tested?

- Manual
- Jest
- Cypress

### Test Plan
> Add Testsmith [test
cases](https://github.com/appsmithorg/TestSmith/issues/2171) links that
relate to this PR

### Issues raised during DP testing
- [X] When a selected widget is below viewport and user refreshes the
page, then the widget property pane is open but the page does not
navigate to the selected widget
https://loom.com/share/09f1eda2f02d474981a0d48e4a6419ec

- [ ] Drop 2 widgets one at a time > Delete both the widgets > Now click
on back button of the browser > Observe the url it shows the widget id
in the URL but the canvas remains empty
https://loom.com/share/53cae28a5d224e67b783c8ccf53745f5
Dev Response: This issue is valid but not a major inconvenience. We will
try to track it and see if it needed to be addressed. Many other web
tools do not handle such cases


- [X] Canvas scrolls down when all widgets are selected.
https://loom.com/share/c8a68dadcdb040779abd3a73bde2b06c

- [X] Widget is not getting highlighted when added from the API editor
page. Please refer to the attached
video:-https://jiju8jbmwa.vmaker.com/record/IkwiAqFgafK9dVmu



## Checklist:
### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] 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
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [x] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test

---------

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-02-21 19:08:16 +05:30
..
fixtures feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
integration/Regression_TestSuite feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
locators feat: Error handling phase 1 (#20629) 2023-02-18 18:25:46 +05:30
manual_TestSuite test: skipping UpgradeAppsmith_spec.js (#20803) 2023-02-20 19:51:24 +05:30
patches test: Script updates for flaky fixes (#16143) 2022-08-24 19:53:41 +05:30
plugins Cypress version upgrade for timeout issue resolution (#15917) 2022-08-16 09:31:16 +05:30
snapshots/Smoke_TestSuite/ClientSideTests/VisualTests feat: editor header UI update (#19414) 2023-01-09 19:52:23 +05:30
support feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
.eslintrc.json [Feature] Grid Widget (#2389) 2021-04-23 11:13:13 +05:30
apply-patches.js test: Script updates for flaky fixes (#16143) 2022-08-24 19:53:41 +05:30
cypress-docker-compose.yml Adding Github Action workflow to the client code base (#66) 2020-07-16 11:20:46 +05:30
index.ts test: Automated few tests for AForce Migration scenarios + Flaky fixes (#12231) 2022-03-31 17:21:08 +05:30
init-mysql-dump-for-test.sql chore: Perform perf tests on a large app (#10831) 2022-02-03 00:25:10 +05:30
init-pg-dump-for-test.sql Using local Postgres database instead of remote (#6241) 2021-07-30 11:41:14 +05:30
setup-test-ci.sh ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
setup-test.sh test: Cypress migration to TED GITEA (#18799) 2023-02-15 01:12:45 +05:30
test.sh test: Moving specs to run on FatContainer + Gitea migration (#18920) 2023-01-25 11:09:02 +05:30
tsconfig.json fix: rts version file moved to src (#15963) 2022-08-12 21:10:50 +05:30
xataadd.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30
xatadel.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30