From 2eac19379b50f78ef0d12adf9702b740a9697f22 Mon Sep 17 00:00:00 2001 From: Sagar Khalasi Date: Mon, 23 Dec 2024 18:50:44 +0530 Subject: [PATCH] fix: Fix for locator for AddWidgetTableAndBind_spec test case (#38313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Found minor locator failure Fixes # https://app.zenhub.com/workspaces/stability-pod-6690c4814e31602e25cab7fd/issues/gh/appsmithorg/appsmith/38314 ## Automation /ok-to-test tags="@tag.Datasource,@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 9cf2fbe2bbda6abdb9547bbb8f38d578fe343f04 > Cypress dashboard. > Tags: `@tag.Datasource,@tag.Sanity` > Spec: >
Mon, 23 Dec 2024 13:19:11 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Bug Fixes** - Updated the locator for the query response to ensure accurate referencing of the second row in the table, improving the application's interaction with query results. --- app/client/cypress/locators/QueryEditor.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/cypress/locators/QueryEditor.json b/app/client/cypress/locators/QueryEditor.json index 0c0cf32811..045bfba869 100644 --- a/app/client/cypress/locators/QueryEditor.json +++ b/app/client/cypress/locators/QueryEditor.json @@ -9,7 +9,7 @@ "addDatasource": ".t--add-datasource", "editDatasourceButton": ".t--edit-datasource", "switch": ".t--form-control-SWITCH input", - "queryResponse": "(//div[@class='table']//div[@class='tr'])[3]//div[@class='td mp-mask']", + "queryResponse": "(//div[@class='table']//div[@class='tr'])[2]//div[@class='td mp-mask']", "querySelect": "//div[contains(@class, 't--template-menu')]//div[text()='Select']", "queryCreate": "//div[contains(@class, 't--template-menu')]//div[text()='Create']", "queryUpdate": "//div[contains(@class, 't--template-menu')]//div[text()='Update']",