Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import * as _ from '../../../../../support/Objects/ObjectsCore';

describe("List widget v1 spec", () => {
before(() => {
/**
* On the canvas we have a List Widget
*/
cy.fixture("listWidgetDsl").then((dsl: string) => {
_.agHelper.AddDsl(dsl);
});
});

it("1. Validate if the 'items', 'server-side pagination', 'Visible', 'Animate Loading' and 'OnListItemClick' properties are present in the property pane", () => {
_.ee.SelectEntityByName("List1", "Widgets");
_.agHelper.AssertContains("Data", "exist", "span");
_.agHelper.AssertContains("Server Side Pagination", "exist", "label");
_.agHelper.AssertContains("Visible", "exist", "label");
_.agHelper.AssertContains("Animate Loading", "exist", "label");
_.agHelper.AssertContains("onListItemClick", "exist", "label");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add few more validations into the spec & then this can be run & merged.
The written case looks ok.

});
});
1 change: 1 addition & 0 deletions app/client/cypress/support/Objects/CommonLocators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@ export class CommonLocators {
_consoleString = ".cm-string";
_commentString = ".cm-comment";
}