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:
parent
31558082d9
commit
18f3c8765a
|
|
@ -123,7 +123,7 @@ describe("GSheet Miscellaneous Tests", function () {
|
||||||
assertHelper.AssertNetworkStatus("@updateLayout", 200);
|
assertHelper.AssertNetworkStatus("@updateLayout", 200);
|
||||||
|
|
||||||
//deploy the app and verify the table data
|
//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];
|
const data = GSHEET_DATA.filter((item) => item.rowIndex === "0")[0];
|
||||||
table.ReadTableRowColumnData(0, 0, "v1").then((cellData) => {
|
table.ReadTableRowColumnData(0, 0, "v1").then((cellData) => {
|
||||||
expect(cellData).to.eq(data.uniq_id);
|
expect(cellData).to.eq(data.uniq_id);
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user