28 lines
792 B
JavaScript
28 lines
792 B
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("u{tab}", {
|
|
force: true
|
|
});
|
|
|
|
//-----------------
|
|
});
|
|
});
|