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

@ -1,5 +1,10 @@
const commonlocators = require("../../../../../locators/commonlocators.json"); 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 widgetsPage = require("../../../../../locators/Widgets.json");
const widgetSelector = (name) => `[data-widgetname-cy="${name}"]`; const widgetSelector = (name) => `[data-widgetname-cy="${name}"]`;
@ -73,9 +78,8 @@ describe(" Nested List Widgets ", function () {
y: 50, y: 50,
}, },
); );
cy.openPropertyPane("textwidget"); entityExplorer.SelectEntityByName("Text1");
propPane.UpdatePropertyFieldValue("Text", "{{currentItem.name}}");
cy.updateCodeInput(".t--property-control-text", `{{currentItem.name}}`);
cy.dragAndDropToWidgetBySelector( cy.dragAndDropToWidgetBySelector(
"textwidget", "textwidget",
@ -111,7 +115,7 @@ describe(" Nested List Widgets ", function () {
}); });
agHelper.GetNClickByContains(".CodeMirror-hints", "pageNo", 0, true); agHelper.GetNClickByContains(".CodeMirror-hints", "pageNo", 0, true);
assertHelper.AssertNetworkStatus("updateLayout");
cy.get(`${widgetSelector("Text2")} .bp3-ui-text span`).should( cy.get(`${widgetSelector("Text2")} .bp3-ui-text span`).should(
"have.text", "have.text",
"1", "1",