This commit is contained in:
2020-04-03 21:11:21 +00:00
parent 7553f1be69
commit a72b000d66

View File

@@ -27,6 +27,9 @@ describe("GZ-DATA-TABLE", () => {
//change datafilters //change datafilters
cy.get("[data-cy=selectlistview]").type("-{enter}", { force: true }); cy.get("[data-cy=selectlistview]").type("-{enter}", { force: true });
//confirm the first column is the widget name
cy.get("thead > tr > th:nth-child(1) > span").contains("Name");
//filter //filter
cy.get("[data-cy=filter]").click(); cy.get("[data-cy=filter]").click();
cy.contains("List view"); cy.contains("List view");
@@ -38,11 +41,8 @@ describe("GZ-DATA-TABLE", () => {
//go back to widgetlist //go back to widgetlist
cy.go("back"); cy.go("back");
//confirm the first column is the username //confirm the first column is now the username
// console.log( cy.get("thead > tr > th:nth-child(1) > span").contains("User");
// cy.get("thead > tr > th:nth-child(1) > span").invoke("innerText")
// );
cy.get("thead > tr > th:nth-child(1) > span").contains("NUser");
//cy.get("thead > tr > th:nth-child(1)").contains("User"); //cy.get("thead > tr > th:nth-child(1)").contains("User");