This commit is contained in:
27
ayanova/tests/e2e/specs/select-list-templates.js
Normal file
27
ayanova/tests/e2e/specs/select-list-templates.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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
|
||||
});
|
||||
|
||||
//-----------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user