PromucFlow_constructor/app/client/cypress/integration/Regression_TestSuite/ClientSideTests
Keyur Paralkar 2ccd20e1e5
fix: column dragging and column reordering (#20928)
## Description

This PR implements the following changes:
- Move the drag events from the Parent component's useEffect to the
`HeaderCell` component.
- Refactored the code. Inside the table component, we refactored the
code such that when SSP is disabled the component uses `StaticTable` and
when SSP enabled then we use `VirtualTable`.
- It also includes the fix for the following issue. Whenever the user
has a scroll to the bottom of the page, on clicking of add new button it
is expected that the scroll should move to the top but it wasn't
happening.

> Add a TL;DR when description is extra long (helps content team)

Fixes #20858
> if no issue exists, please create an issue and ask the maintainers
about this first


## Type of change


- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?

- Manual
    - Test cases:
        - Column name should appear on update from the property pane
        - reorder whenever SSP is enabled
        - On column re-size
        - When a col is frozen
        - When a col is unfrozen
        - When all the headers or one of them is removed
        - When sorted also should work
        - Enable multi-row selection
        - When in preview mode and back and forth(Check the above cases)
        - When in Deployed mode
- Dragging of columns from the column header should work as expected
both in Deploy and Published mode.
- 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
- [ ] I have performed a self-review of my own code
- [x] 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
- [ ] 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
2023-03-05 19:49:44 +05:30
..
ActionExecution test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
AdminSettings test: Cypress tests - Grouping logical it blocks - Part 1 (#20305) 2023-02-25 00:35:19 +05:30
AuditLogs test: Cypress tests - Grouping logical it blocks - Part 1 (#20305) 2023-02-25 00:35:19 +05:30
Autocomplete test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
Binding test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
Branding test: Cypress tests - Grouping logical it blocks - Part 1 (#20305) 2023-02-25 00:35:19 +05:30
BugTests test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
CodeComment test: Cypress tests - Grouping logical it blocks - Part 1 (#20305) 2023-02-25 00:35:19 +05:30
DynamicHeight feat: Auto layout appsmith editor and mobile responsiveness (#21151) 2023-03-04 12:55:54 +05:30
EmbedSettings
ExplorerTests test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
FormLogin
FormNativeToRawTests test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
GenerateCRUD test: Cypress tests - Grouping logical it blocks - Part 1 (#20305) 2023-02-25 00:35:19 +05:30
Git test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
Github
Google
IDE feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
JSLibrary fix: JSPDF output API crash (#20544) 2023-02-10 13:13:22 +05:30
Linting test: Fix flaky tests + Add clean up for git repos (#20319) 2023-02-06 13:07:01 +05:30
Onboarding test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
OtherUIFeatures test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
PeekOverlay test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
PropertyPane
Refactoring test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
SettingsPane test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
Templates test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30
ThemingTests feat: Auto layout appsmith editor and mobile responsiveness (#21151) 2023-03-04 12:55:54 +05:30
VisualTests feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
Widgets fix: column dragging and column reordering (#20928) 2023-03-05 19:49:44 +05:30
Workspace test: Flaky test fix (#21120) 2023-03-05 08:52:42 +05:30