This commit is contained in:
25
ayanova/tests/e2e/specs/customize-form.js
Normal file
25
ayanova/tests/e2e/specs/customize-form.js
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user