test: cypress - Flaky fix ListV2_nested_List_widget_spec.js (#25887)

Updated Spec:
Regression/ClientSide/Widgets/ListV2/ListV2_nested_List_widget_spec.js
This commit is contained in:
NandanAnantharamu 2023-08-01 19:49:42 +05:30 committed by GitHub
parent 31558082d9
commit 18f3c8765a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -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);

View File

@ -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",