From 2934bc6aa412cc48462c5c5eb3c1da9d0eade359 Mon Sep 17 00:00:00 2001 From: Rahul Barwal Date: Mon, 28 Jul 2025 11:32:03 +0530 Subject: [PATCH] fix: update column position check in TableV2 freeze column test (#41130) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Problem The freeze column test in TableV2 is failing due to incorrect column position checks. Root cause The test logic for verifying column positions does not accurately reflect the expected behavior after columns are frozen. Solution This PR handles updating the column position check logic in the TableV2 freeze column test to ensure it correctly validates the positions of columns after freezing. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Table" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: b0496c58d9df265e06e8090667d865bc0957c39a > Cypress dashboard. > Tags: `@tag.Table` > Spec: >
Thu, 24 Jul 2025 10:56:26 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit * **Tests** * Updated test to verify the frozen column appears in the correct position after table data changes. --- .../Widgets/TableV2/freeze_column_query_change_spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/freeze_column_query_change_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/freeze_column_query_change_spec.js index e606409aeb..fe533a2bb6 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/freeze_column_query_change_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/freeze_column_query_change_spec.js @@ -46,8 +46,9 @@ describe( cy.openPropertyPane(WIDGET.TABLE); cy.updateCodeInput(PROPERTY_SELECTOR.tableData, TABLE_DATA_STATIC); + cy.wait(1000); //Check the id column is still frozen to the right: - cy.checkColumnPosition("customColumn1", 5); + cy.checkColumnPosition("customColumn1", 4); }); it("1.3 Check if the custom + common columns retain their positon", () => {