Files
raven-client/ayanova/tests/e2e/specs/select-list-templates.js
2020-04-04 23:24:16 +00:00

35 lines
1.2 KiB
JavaScript

// https://docs.cypress.io/api/introduction/api.html
describe("PICK LIST TEMPLATE", () => {
it("Successfully changes pick list template", () => {
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("/adm-global-settings");
cy.url().should("include", "/adm-global-settings");
cy.get("[data-cy=picklisttemplates]").click();
cy.url().should("include", "/adm-global-select-templates");
cy.get("[data-cy=SelectTemplate]").type("3{enter}", { force: true });
//hide tags field
cy.get("[data-cy=useremployeenumberInclude]").uncheck({ force: true });
cy.get(
'[data-cy="adm-global-select-templates:save"] > .v-btn__content > .v-icon'
).click();
cy.visit("/widgets/0");
cy.url().should("include", "/widgets/0");
cy.get("[data-cy=userid] > .v-input").type("a ..zone");
//tags is off so there shouldn't be any "zones" visible in there
//-----------------
});
});