This commit is contained in:
@@ -6,8 +6,13 @@ describe("When Accounting user logs in", () => {
|
||||
const dToday = `${dNow.getFullYear()}-${(dNow.getMonth() + 1)
|
||||
.toString()
|
||||
.padStart(2, "0")}-${dNow.getDate().toString().padStart(2, "0")}`;
|
||||
const tNow = `${dNow.getHours().toString().padStart(2, "0")}:${dNow.getMinutes().toString().padStart(2, "0")}`;
|
||||
const tOneHourFromNow = `${(dNow.getHours() + 1).toString().padStart(2, "0")}:${dNow.getMinutes().toString().padStart(2, "0")}`;
|
||||
const tNow = `${dNow.getHours().toString().padStart(2, "0")}:${dNow
|
||||
.getMinutes()
|
||||
.toString()
|
||||
.padStart(2, "0")}`;
|
||||
const tOneHourFromNow = `${(dNow.getHours() + 1)
|
||||
.toString()
|
||||
.padStart(2, "0")}:${dNow.getMinutes().toString().padStart(2, "0")}`;
|
||||
|
||||
cy.visit("/login");
|
||||
|
||||
@@ -26,12 +31,11 @@ describe("When Accounting user logs in", () => {
|
||||
|
||||
//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 });
|
||||
|
||||
|
||||
|
||||
//DASHBOARD
|
||||
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
@@ -113,13 +117,12 @@ describe("When Accounting user logs in", () => {
|
||||
cy.get("[data-cy='nav/home-reminders']").click();
|
||||
cy.url().should("include", "/home-reminders");
|
||||
|
||||
//SCHEDULE
|
||||
//should show reminder made above in month display by default
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy='nav/home-schedule']").click();
|
||||
cy.url().should("include", "/home-schedule");
|
||||
cy.contains(`${Cypress.config("cyid")}-test-reminder`);
|
||||
|
||||
//SCHEDULE
|
||||
//should show reminder made above in month display by default
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy='nav/home-schedule']").click();
|
||||
cy.url().should("include", "/home-schedule");
|
||||
cy.contains(`${Cypress.config("cyid")}-test-reminder`);
|
||||
|
||||
//NOTIFICATION SUBSCRIPTION
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
@@ -138,7 +141,6 @@ describe("When Accounting user logs in", () => {
|
||||
cy.contains("Contract");
|
||||
cy.contains("Deliver in application");
|
||||
|
||||
|
||||
//CONTRACT
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy=accounting]").click();
|
||||
@@ -161,6 +163,7 @@ describe("When Accounting user logs in", () => {
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy='nav/svc-contracts']").click();
|
||||
cy.url().should("include", "/svc-contracts");
|
||||
|
||||
//REVIEW CONTRACT
|
||||
cy.contains(`${Cypress.config("cyid")}-test-contract`).click(); //open it
|
||||
cy.get("[data-cy=contextmenu]").click();
|
||||
@@ -186,8 +189,10 @@ describe("When Accounting user logs in", () => {
|
||||
cy.get("[data-cy=home]").click();
|
||||
cy.get("[data-cy='nav/home-schedule']").click();
|
||||
cy.url().should("include", "/home-schedule");
|
||||
cy.get(".v-present > .v-calendar-weekly__day-label > .v-btn").click({force:true});
|
||||
cy.contains("12 PM");//just something to find in day view to confirm we made it there
|
||||
cy.get(".v-present > .v-calendar-weekly__day-label > .v-btn").click({
|
||||
force: true
|
||||
});
|
||||
cy.contains("12 PM"); //just something to find in day view to confirm we made it there
|
||||
cy.contains(`${Cypress.config("cyid")}-test-review`);
|
||||
|
||||
//NOTIFICATION
|
||||
@@ -196,6 +201,14 @@ describe("When Accounting user logs in", () => {
|
||||
cy.contains("Object created");
|
||||
cy.contains(`${Cypress.config("cyid")}-test-contract`);
|
||||
|
||||
//HISTORY
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy='nav/home-history']").click();
|
||||
cy.url().should("include", "/history");
|
||||
cy.contains(`${Cypress.config("cyid")}-test-contract`);
|
||||
cy.contains(`${Cypress.config("cyid")}-test-review`);
|
||||
cy.contains(`${Cypress.config("cyid")}-test-reminder`);
|
||||
cy.contains(`${Cypress.config("cyid")}-test-subject`);
|
||||
//=========================================================
|
||||
|
||||
// cy.get("[data-cy='nav/home-history']");
|
||||
|
||||
Reference in New Issue
Block a user