This commit is contained in:
2020-04-04 00:17:00 +00:00
parent 02ada3a759
commit fa49eefc53
3 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
// https://docs.cypress.io/api/introduction/api.html
describe("CUSTOMIZE", () => {
it("Loads from edit form", () => {
cy.visit("/login");
cy.get("input[name=username]")
.clear()
.type(Cypress.env("adminusername"));
// {enter} causes the form to submit
cy.get("input[name=password]")
.clear()
.type(`${Cypress.env("adminpassword")}{enter}`);
cy.url().should("include", "/home-dashboard");
cy.visit("/widgets/0");
cy.url().should("include", "/widgets/0");
cy.wait(100);
cy.get("[data-cy=contextmenu]").click();
cy.get('[data-cy="app:customize"]').click();
cy.url().should("include", "/customize/Widget");
cy.get("[data-cy=WidgetCustom8]").scrollIntoView();
});
});