PromucFlow_constructor/app/client/cypress/integration/Regression_TestSuite/ClientSideTests
Souma Ghosh 39e9923b2d
fix: Table breaks on adding binding to column name (#20686)
## Description

When user adds any sort of binding to the column name of a table from
property pane Columns section, the table breaks.
This was happening because of the column label getting stored as
undefined or as an object that the binding evaluates to.
Only string values are expected in column label. Hence the table was
breaking for non string values of column label.

This PR fixes this issue by replacing the column name with a default
text "customColumn" whenever the column label is not of type string

https://www.loom.com/share/1c5feab1aafa43abaac757d853a02770

Fixes #20663 

## Type of change

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


## How Has This Been Tested?

- Cypress

### Test Plan
> https://github.com/appsmithorg/TestSmith/issues/2188

### 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
- [x] 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
- [x] 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:
- [x] 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
2023-02-22 21:02:05 +05:30
..
ActionExecution chore: fix imports to resolve EE conflicts (#20576) 2023-02-13 09:19:20 +05:30
AdminSettings
AuditLogs
Autocomplete feat: Error handling phase 1 (#20629) 2023-02-18 18:25:46 +05:30
Binding test: Script updates for flaky tests (#20846) 2023-02-22 11:31:25 +05:30
Branding fix: Brand colors sometimes shows different colors on cloud (#19672) 2023-02-02 11:43:00 +05:30
BugTests fix: User gets an error even when table widget is added from the API … (#20593) 2023-02-20 17:33:54 +05:30
CodeComment
DynamicHeight feat: Non auto height invisible widgets (#20118) 2023-02-14 19:06:19 +05:30
EmbedSettings
ExplorerTests feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
FormLogin
FormNativeToRawTests
GenerateCRUD
Git test: Script updates for flaky tests (#20846) 2023-02-22 11:31:25 +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 chore: Revert "feat: move the widget creation CTA off the Entity explorer (#… (#20335) 2023-02-03 14:47:01 +06:00
OtherUIFeatures feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
PeekOverlay feat: peek overlay (#20053) 2023-02-17 21:33:34 +05:30
PropertyPane
Refactoring test: Cypress Flaky fixes + Mock api update + PgAdminspec fix (#20032) 2023-02-02 13:29:24 +05:30
SettingsPane
Templates test: Cypress migration to TED GITEA (#18799) 2023-02-15 01:12:45 +05:30
ThemingTests test: Flaky test fix (#20667) 2023-02-21 02:21:16 +05:30
VisualTests feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
Widgets fix: Table breaks on adding binding to column name (#20686) 2023-02-22 21:02:05 +05:30
Workspace test: Script updates for flaky tests (#20846) 2023-02-22 11:31:25 +05:30