This commit is contained in:
@@ -1,20 +1,30 @@
|
|||||||
{
|
{
|
||||||
"defaultCommandTimeout":5000,
|
"defaultCommandTimeout": 5000,
|
||||||
"xxxretries": 3,
|
"xxxretries": 3,
|
||||||
"integrationFolder": "tests",
|
"integrationFolder": "tests",
|
||||||
"supportFile":"support",
|
"supportFile": "support",
|
||||||
"xbaseUrl": "http://localhost:7575",
|
"baseUrl": "http://localhost:7575",
|
||||||
"baseUrl": "https://test.helloayanova.com",
|
"xbaseUrl": "https://test.helloayanova.com",
|
||||||
"xxxxbaseUrl":"http://localhost:8080",
|
"xxxxbaseUrl": "http://localhost:8080",
|
||||||
"video":false,
|
"video": false,
|
||||||
"env": {
|
"env": {
|
||||||
"xapiBaseUrl":"http://localhost:7575/api/v8.0/",
|
"apiBaseUrl": "http://localhost:7575/api/v8.0/",
|
||||||
"apiBaseUrl":"https://test.helloayanova.com/api/v8.0/",
|
"xapiBaseUrl": "https://test.helloayanova.com/api/v8.0/",
|
||||||
"adminusername": "superuser",
|
"admin": {
|
||||||
"adminpassword": "l3tm3in",
|
"login": "superuser",
|
||||||
"accountinguser": "Accounting",
|
"password": "l3tm3in"
|
||||||
"accountingpassword": "Accounting",
|
},
|
||||||
"serviceuser":"Service",
|
"accounting": {
|
||||||
"servicepassword":"Service"
|
"login": "Accounting",
|
||||||
|
"password": "Accounting"
|
||||||
|
},
|
||||||
|
"service": {
|
||||||
|
"login": "Service",
|
||||||
|
"password": "Service"
|
||||||
|
},
|
||||||
|
"customer": {
|
||||||
|
"login": "Customer",
|
||||||
|
"password": "Customer"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,21 @@ Cypress.Commands.add("chooseVSelect", (dataCyTag, selectionText) => {
|
|||||||
Cypress.Commands.add("choosePickList", (dataCyTag, selectionText) => {
|
Cypress.Commands.add("choosePickList", (dataCyTag, selectionText) => {
|
||||||
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type(selectionText);
|
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type(selectionText);
|
||||||
cy.wait(500);
|
cy.wait(500);
|
||||||
cy.get(".v-list-item__title")
|
cy.get(".v-list-item__title").contains(new RegExp(selectionText)).click();
|
||||||
.contains(new RegExp(selectionText))
|
});
|
||||||
.click();
|
|
||||||
|
Cypress.Commands.add("ayLogin", (user, urlAfterLogin) => {
|
||||||
|
if(!urlAfterLogin){
|
||||||
|
urlAfterLogin="/ay-evaluate"
|
||||||
|
}
|
||||||
|
cy.visit("/login");
|
||||||
|
|
||||||
|
cy.get("input[name=username]").clear().type(Cypress.env(user).login);
|
||||||
|
|
||||||
|
// {enter} causes the form to submit
|
||||||
|
cy.get("input[name=password]")
|
||||||
|
.clear()
|
||||||
|
.type(`${Cypress.env(user).password}{enter}`);
|
||||||
|
|
||||||
|
cy.url().should("include", urlAfterLogin);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,72 +20,4 @@ import "./commands";
|
|||||||
// require('./commands')
|
// require('./commands')
|
||||||
|
|
||||||
//unique test run ID for all tests
|
//unique test run ID for all tests
|
||||||
Cypress.config("cyid", `cy${new Date().getTime()}`);
|
Cypress.config("cyid", `cy${new Date().getTime()}`);
|
||||||
///////////////////////////////////////////////////////////////
|
|
||||||
//Generate fresh data
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// //via UI
|
|
||||||
// // before(() => {
|
|
||||||
// // 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", "/ay-evaluate");
|
|
||||||
|
|
||||||
// // cy.get("[data-cy=btnSeed]").click();
|
|
||||||
// // cy.get("[data-cy=btnStart]").click();
|
|
||||||
// // cy.get('[data-cy="gzconfirm:yesbutton"]').click();
|
|
||||||
// // //cy.contains("permanently erase");
|
|
||||||
// // cy.get('[data-cy="gzconfirm:yesbutton"]').click();
|
|
||||||
// // //long delay here while data is being generated
|
|
||||||
// // cy.url({ timeout: 300000 }).should("include", "/login");
|
|
||||||
// // });
|
|
||||||
//via API
|
|
||||||
function confirmJobDone(jobId, authToken) {
|
|
||||||
cy.request({
|
|
||||||
method: "GET",
|
|
||||||
url: `${Cypress.env("apiBaseUrl")}job-operations/status/${jobId}`,
|
|
||||||
auth: {
|
|
||||||
bearer: authToken
|
|
||||||
}
|
|
||||||
}).then((resp) => {
|
|
||||||
//3 means job done
|
|
||||||
if (resp.body.data == 3) return;
|
|
||||||
// else recurse
|
|
||||||
cy.wait(1000);
|
|
||||||
confirmJobDone(jobId, authToken);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// before(() => {
|
|
||||||
// cy.request({
|
|
||||||
// url: `${Cypress.env("apiBaseUrl")}auth`,
|
|
||||||
// method: "POST",
|
|
||||||
// body: {
|
|
||||||
// login: Cypress.env("adminusername"),
|
|
||||||
// password: Cypress.env("adminpassword")
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .its("body")
|
|
||||||
// .then((res) => {
|
|
||||||
// cy.request({
|
|
||||||
// method: "POST",
|
|
||||||
// url: `${Cypress.env("apiBaseUrl")}trial/seed/small/-7/true`,
|
|
||||||
// auth: {
|
|
||||||
// bearer: res.data.token
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .its("body")
|
|
||||||
// .then((resjob) => {
|
|
||||||
// cy.log(`resjob is: ${JSON.stringify(resjob)}`);
|
|
||||||
// // expect(resjob.body).to.have.property('jobId');
|
|
||||||
// confirmJobDone(resjob.jobId, res.data.token);
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE HOME SECTION", () => {
|
describe("SMOKE HOME SECTION", () => {
|
||||||
it("Home forms opens without error", () => {
|
it("Home forms opens without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# HOME
|
//################# HOME
|
||||||
cy.visit("/home-dashboard");
|
cy.visit("/home-dashboard");
|
||||||
|
|||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE CUSTOMER SECTION", () => {
|
describe("SMOKE CUSTOMER SECTION", () => {
|
||||||
it("Customer section forms opens without error", () => {
|
it("Customer section forms opens without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# CUSTOMERS
|
//################# CUSTOMERS
|
||||||
cy.visit("/cust-customers");
|
cy.visit("/cust-customers");
|
||||||
|
|||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE SERVICE MISC SECTION", () => {
|
describe("SMOKE SERVICE MISC SECTION", () => {
|
||||||
it("Service MISC forms open without error", () => {
|
it("Service MISC forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
//################# SERVICE
|
//################# SERVICE
|
||||||
cy.visit("/svc-schedule");
|
cy.visit("/svc-schedule");
|
||||||
cy.url().should("include", "/svc-schedule");
|
cy.url().should("include", "/svc-schedule");
|
||||||
|
|||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE SERVICE WO SECTION", () => {
|
describe("SMOKE SERVICE WO SECTION", () => {
|
||||||
it("Service WO forms open without error", () => {
|
it("Service WO forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
//################# SERVICE WO
|
//################# SERVICE WO
|
||||||
|
|
||||||
cy.visit("/svc-workorders");
|
cy.visit("/svc-workorders");
|
||||||
|
|||||||
@@ -2,14 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE SERVICE QUOTE SECTION", () => {
|
describe("SMOKE SERVICE QUOTE SECTION", () => {
|
||||||
it("Service quote forms open without error", () => {
|
it("Service quote forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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.visit("/svc-quotes");
|
cy.visit("/svc-quotes");
|
||||||
|
|||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE SERVICE PM SECTION", () => {
|
describe("SMOKE SERVICE PM SECTION", () => {
|
||||||
it("Service pm forms open without error", () => {
|
it("Service pm forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
cy.visit("/svc-pms");
|
cy.visit("/svc-pms");
|
||||||
cy.url().should("include", "/svc-pms");
|
cy.url().should("include", "/svc-pms");
|
||||||
|
|||||||
@@ -2,15 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE INVENTORY", () => {
|
describe("SMOKE INVENTORY", () => {
|
||||||
it("Inventory forms open without error", () => {
|
it("Inventory forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# INVENTORY
|
//################# INVENTORY
|
||||||
cy.visit("/inv-parts");
|
cy.visit("/inv-parts");
|
||||||
|
|||||||
@@ -2,17 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE VENDORS SECTION", () => {
|
describe("SMOKE VENDORS SECTION", () => {
|
||||||
it("Vendors forms open without error", () => {
|
it("Vendors forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# VENDORS
|
|
||||||
cy.visit("/vendors");
|
cy.visit("/vendors");
|
||||||
cy.url().should("include", "/vendors");
|
cy.url().should("include", "/vendors");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
|||||||
@@ -2,17 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE", () => {
|
describe("SMOKE", () => {
|
||||||
it("Every form opens without error", () => {
|
it("Every form opens without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("accounting");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# ACCOUNTING
|
|
||||||
|
|
||||||
cy.visit("/acc-service-rates");
|
cy.visit("/acc-service-rates");
|
||||||
cy.url().should("include", "/acc-service-rates");
|
cy.url().should("include", "/acc-service-rates");
|
||||||
|
|||||||
@@ -2,16 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE ADMIN SECTION", () => {
|
describe("SMOKE ADMIN SECTION", () => {
|
||||||
it("Admin forms open without error", () => {
|
it("Admin forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
//################# ADMIN
|
|
||||||
cy.visit("/adm-global-settings");
|
cy.visit("/adm-global-settings");
|
||||||
cy.url().should("include", "/adm-global-settings");
|
cy.url().should("include", "/adm-global-settings");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
|||||||
@@ -2,17 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE OPERATIONS SECTION", () => {
|
describe("SMOKE OPERATIONS SECTION", () => {
|
||||||
it("Ops forms open without error", () => {
|
it("Ops forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
|
|
||||||
//################# OPERATIONS
|
|
||||||
cy.visit("/ops-backup");
|
cy.visit("/ops-backup");
|
||||||
cy.url().should("include", "/ops-backup");
|
cy.url().should("include", "/ops-backup");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
|||||||
@@ -2,17 +2,7 @@
|
|||||||
|
|
||||||
describe("SMOKE MISC", () => {
|
describe("SMOKE MISC", () => {
|
||||||
it("Misc. forms open without error", () => {
|
it("Misc. forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("admin");
|
||||||
|
|
||||||
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", "/ay-evaluate");
|
|
||||||
cy.url().should("include", "/ay-evaluate");
|
|
||||||
//################# MISC
|
|
||||||
cy.visit("/about");
|
cy.visit("/about");
|
||||||
cy.url().should("include", "/about");
|
cy.url().should("include", "/about");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
|||||||
@@ -2,13 +2,8 @@
|
|||||||
|
|
||||||
describe("SMOKE CUSTOMER SECTION", () => {
|
describe("SMOKE CUSTOMER SECTION", () => {
|
||||||
it("Customer User forms open without error", () => {
|
it("Customer User forms open without error", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("accounting", "/customer-csr");
|
||||||
|
|
||||||
//CUSTOMER PAGES
|
|
||||||
cy.get("input[name=username]").clear().type("Customer");
|
|
||||||
cy.get("input[name=password]").clear().type("Customer{enter}");
|
|
||||||
|
|
||||||
cy.url().should("include", "/customer-csr");
|
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=csrTable]");
|
cy.get("[data-cy=csrTable]");
|
||||||
|
|
||||||
@@ -17,7 +12,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
|
|||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=workordersTable]");
|
cy.get("[data-cy=workordersTable]");
|
||||||
|
|
||||||
//todo:
|
//todo:
|
||||||
//path: "/customer-workorders/:recordid",
|
//path: "/customer-workorders/:recordid",
|
||||||
//path: "/customer-csr/:recordid"
|
//path: "/customer-csr/:recordid"
|
||||||
|
|
||||||
|
|||||||
20
e2e/tests/regression/accounting-user/000-setup.js
Normal file
20
e2e/tests/regression/accounting-user/000-setup.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/// <reference types="cypress" />
|
||||||
|
describe("When Accounting user logs in", () => {
|
||||||
|
it("should set up accounting block user options", () => {
|
||||||
|
cy.ayLogin("accounting");
|
||||||
|
|
||||||
|
//open nav pane
|
||||||
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
cy.contains("- Accounting"); //part of name displayed at top
|
||||||
|
|
||||||
|
//USER OPTIONS
|
||||||
|
cy.get("[data-cy=home]").click();
|
||||||
|
|
||||||
|
cy.get("[data-cy='nav/home-user-settings']").click();
|
||||||
|
cy.url().should("include", "/home-user-settings");
|
||||||
|
cy.get("[data-cy='nativeDateTimeInput']").check({ force: true });
|
||||||
|
|
||||||
|
//END OF TEST
|
||||||
|
//-----------------------------------------------------
|
||||||
|
});
|
||||||
|
});
|
||||||
19
e2e/tests/regression/accounting-user/0100-search.js
Normal file
19
e2e/tests/regression/accounting-user/0100-search.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/// <reference types="cypress" />
|
||||||
|
describe("Search", () => {
|
||||||
|
it("should work", () => {
|
||||||
|
//SEARCH
|
||||||
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
cy.get("[data-cy='nav/home-search']").click();
|
||||||
|
cy.url().should("include", "/home-search");
|
||||||
|
cy.get("[data-cy=phrase]").clear().type("xyz{enter}");
|
||||||
|
//check for expected results
|
||||||
|
cy.contains("Customer");
|
||||||
|
cy.contains("XYZ Accounting");
|
||||||
|
cy.contains("Head Office");
|
||||||
|
cy.contains("XYZ Head Office");
|
||||||
|
|
||||||
|
//END OF TEST
|
||||||
|
//-----------------------------------------------------
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe("When Accounting user logs in", () => {
|
describe.skip("When Accounting user logs in", () => {
|
||||||
it("should correctly run all functionality", () => {
|
it("should correctly run all functionality", () => {
|
||||||
//format for typing input and setting value is always YYYY-MM-DD for date and HH:MM in 24 hour time for time
|
//format for typing input and setting value is always YYYY-MM-DD for date and HH:MM in 24 hour time for time
|
||||||
const dNow = new Date();
|
const dNow = new Date();
|
||||||
@@ -14,16 +14,7 @@ describe("When Accounting user logs in", () => {
|
|||||||
.toString()
|
.toString()
|
||||||
.padStart(2, "0")}:${dNow.getMinutes().toString().padStart(2, "0")}`;
|
.padStart(2, "0")}:${dNow.getMinutes().toString().padStart(2, "0")}`;
|
||||||
|
|
||||||
cy.visit("/login");
|
cy.ayLogin("accounting");
|
||||||
|
|
||||||
cy.get("input[name=username]").clear().type(Cypress.env("accountinguser"));
|
|
||||||
|
|
||||||
// {enter} causes the form to submit
|
|
||||||
cy.get("input[name=password]")
|
|
||||||
.clear()
|
|
||||||
.type(`${Cypress.env("accountingpassword")}{enter}`);
|
|
||||||
|
|
||||||
cy.url().should("include", "/ay-evaluate");
|
|
||||||
|
|
||||||
//open nav pane
|
//open nav pane
|
||||||
cy.get("[data-cy=navicon]").click();
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
|||||||
@@ -2,16 +2,9 @@
|
|||||||
|
|
||||||
import dayjs from "../../../support/dayjs.min.js";
|
import dayjs from "../../../support/dayjs.min.js";
|
||||||
|
|
||||||
describe("When Service user logs in", () => {
|
describe.skip("When Service user logs in", () => {
|
||||||
it("should correctly run all functionality", () => {
|
it("should correctly run all functionality", () => {
|
||||||
cy.visit("/login");
|
cy.ayLogin("service");
|
||||||
cy.get("input[name=username]").clear().type(Cypress.env("serviceuser"));
|
|
||||||
// {enter} causes the form to submit
|
|
||||||
cy.get("input[name=password]")
|
|
||||||
.clear()
|
|
||||||
.type(`${Cypress.env("servicepassword")}{enter}`);
|
|
||||||
|
|
||||||
cy.url().should("include", "/ay-evaluate");
|
|
||||||
|
|
||||||
//open nav pane
|
//open nav pane
|
||||||
cy.get("[data-cy=navicon]").click();
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
|||||||
Reference in New Issue
Block a user