From 18f3c8765a2cc9c00ad8202a2baea2c2d524e563 Mon Sep 17 00:00:00 2001 From: NandanAnantharamu <67676905+NandanAnantharamu@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:49:42 +0530 Subject: [PATCH] test: cypress - Flaky fix ListV2_nested_List_widget_spec.js (#25887) Updated Spec: Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js --- app/client/cypress/e2e/GSheet/Misc_Spec.ts | 2 +- .../ListV2/ListV2_nested_List_widget_spec.js | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/client/cypress/e2e/GSheet/Misc_Spec.ts b/app/client/cypress/e2e/GSheet/Misc_Spec.ts index 0ebaf238b7..ced4cb19ed 100644 --- a/app/client/cypress/e2e/GSheet/Misc_Spec.ts +++ b/app/client/cypress/e2e/GSheet/Misc_Spec.ts @@ -123,7 +123,7 @@ describe("GSheet Miscellaneous Tests", function () { assertHelper.AssertNetworkStatus("@updateLayout", 200); //deploy the app and verify the table data - deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE_V1)); + deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE_V1)); const data = GSHEET_DATA.filter((item) => item.rowIndex === "0")[0]; table.ReadTableRowColumnData(0, 0, "v1").then((cellData) => { expect(cellData).to.eq(data.uniq_id); diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js index c1bb60260f..b4fb328d7a 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js @@ -1,5 +1,10 @@ const commonlocators = require("../../../../../locators/commonlocators.json"); -import { agHelper, propPane } from "../../../../../support/Objects/ObjectsCore"; +import { + agHelper, + assertHelper, + entityExplorer, + propPane, +} from "../../../../../support/Objects/ObjectsCore"; const widgetsPage = require("../../../../../locators/Widgets.json"); const widgetSelector = (name) => `[data-widgetname-cy="${name}"]`; @@ -73,9 +78,8 @@ describe(" Nested List Widgets ", function () { y: 50, }, ); - cy.openPropertyPane("textwidget"); - - cy.updateCodeInput(".t--property-control-text", `{{currentItem.name}}`); + entityExplorer.SelectEntityByName("Text1"); + propPane.UpdatePropertyFieldValue("Text", "{{currentItem.name}}"); cy.dragAndDropToWidgetBySelector( "textwidget", @@ -111,7 +115,7 @@ describe(" Nested List Widgets ", function () { }); agHelper.GetNClickByContains(".CodeMirror-hints", "pageNo", 0, true); - + assertHelper.AssertNetworkStatus("updateLayout"); cy.get(`${widgetSelector("Text2")} .bp3-ui-text span`).should( "have.text", "1",