26 lines
743 B
JavaScript
26 lines
743 B
JavaScript
// 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();
|
|
});
|
|
});
|