|
| 1 | +import { |
| 2 | + getWidgetSelector, |
| 3 | + WIDGET, |
| 4 | +} from "../../../../../locators/WidgetLocators"; |
| 5 | +import { ObjectsRegistry } from "../../../../../support/Objects/Registry"; |
| 6 | + |
| 7 | +const agHelper = ObjectsRegistry.AggregateHelper; |
| 8 | +const ee = ObjectsRegistry.EntityExplorer; |
| 9 | +const propPane = ObjectsRegistry.PropertyPane; |
| 10 | +const locator = ObjectsRegistry.CommonLocators; |
| 11 | + |
| 12 | +describe("List widget v1 spec", () => { |
| 13 | + before(() => { |
| 14 | + /** |
| 15 | + * On the canvas we have a List Widget |
| 16 | + */ |
| 17 | + cy.fixture("listWidgetDsl").then((dsl: string) => { |
| 18 | + agHelper.AddDsl(dsl); |
| 19 | + }); |
| 20 | + }); |
| 21 | + |
| 22 | + it("1. Validate if the 'items' property is present in the property pane", () => { |
| 23 | + ee.SelectEntityByName("List1", "Widgets"); |
| 24 | + agHelper.AssertElementVisible(locator._listWidgetItemsDatalabel); |
| 25 | + }); |
| 26 | + it("2. Validate if the 'server-side pagination' property is present in the property pane", () => { |
| 27 | + // ee.SelectEntityByName("List1", "Widgets"); |
| 28 | + agHelper.AssertElementVisible(locator._listWidgetPaginationlabel); |
| 29 | + }); |
| 30 | + it("3. Validate if the 'Visible' property is present in the property pane", () => { |
| 31 | + agHelper.AssertElementVisible(locator._listWidgetVisiblelabel); |
| 32 | + }); |
| 33 | + it("4. Validate if the 'Animate Loading' property is present in the property pane", () => { |
| 34 | + agHelper.AssertElementVisible(locator._listWidgetAnimateLoadinglabel); |
| 35 | + }); |
| 36 | + it("4. Validate if the 'OnListItemClick' property is present in the property pane", () => { |
| 37 | + agHelper.AssertElementVisible(locator._listWidgetClickEventlabel); |
| 38 | + }); |
| 39 | +}); |
0 commit comments