Final (?) de-widgetification
This commit is contained in:
@@ -11,11 +11,11 @@ describe("GZ-DATA-TABLE", () => {
|
||||
.clear()
|
||||
.type("BizAdmin{enter}");
|
||||
//cy.url().should("include", "/home-dashboard");
|
||||
cy.visit("/widgets");
|
||||
cy.url().should("include", "/widgets");
|
||||
cy.visit("/customers");
|
||||
cy.url().should("include", "/customers");
|
||||
|
||||
cy.contains("Rows per page");
|
||||
//select default widget list view
|
||||
//select default customer list view
|
||||
cy.get("[data-cy=selectlistview]").type("-{enter}", { force: true });
|
||||
//confirm we see the data expected
|
||||
cy.contains("Name");
|
||||
@@ -24,7 +24,7 @@ describe("GZ-DATA-TABLE", () => {
|
||||
//refresh
|
||||
cy.get("[data-cy=refresh]").click();
|
||||
|
||||
//confirm the first column is the widget name
|
||||
//confirm the first column is the customer name
|
||||
cy.get("thead > tr > th:nth-child(1) > span").contains("Name");
|
||||
|
||||
// cy.get('[aria-label="Next page"] > .v-btn__content > .v-icon').click();
|
||||
@@ -53,7 +53,7 @@ describe("GZ-DATA-TABLE", () => {
|
||||
'[data-cy="columncard:username"] > .v-card__text > .d-flex > :nth-child(1) > .v-btn__content > [data-cy=movestart]'
|
||||
).click();
|
||||
|
||||
//go back to widgetlist
|
||||
//go back to customerlist
|
||||
cy.go("back");
|
||||
|
||||
//confirm the first column is now the username
|
||||
@@ -62,20 +62,20 @@ describe("GZ-DATA-TABLE", () => {
|
||||
//switch back to default filter
|
||||
cy.get("[data-cy=selectlistview]").type("-{enter}{esc}", { force: true });
|
||||
|
||||
//open a widget record
|
||||
//open a customer record
|
||||
cy.wait(100);
|
||||
cy.get("tbody > :nth-child(1) > :nth-child(1)").click();
|
||||
//cy.get(":nth-child(1) > :nth-child(1) > .subtitle-1 > a").click();
|
||||
|
||||
//confirm on widget edit form
|
||||
cy.get('[data-cy="widget-edit:delete"]');
|
||||
//confirm on customer edit form
|
||||
cy.get('[data-cy="customer-edit:delete"]');
|
||||
|
||||
//go back to widgetlist
|
||||
//go back to customerlist
|
||||
cy.go("back");
|
||||
|
||||
//new
|
||||
cy.get("[data-cy='widget-list:new']").click();
|
||||
cy.url().should("include", "/widgets/0");
|
||||
cy.get("[data-cy='customer-list:new']").click();
|
||||
cy.url().should("include", "/customers/0");
|
||||
|
||||
//cy.get("thead > tr > th:nth-child(1)").contains("User");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user