This commit is contained in:
2021-12-21 16:19:38 +00:00
parent f18cea9ef3
commit 3644da98ad
21 changed files with 105 additions and 171 deletions

View File

@@ -3,13 +3,13 @@
"xxxretries": 3, "xxxretries": 3,
"integrationFolder": "tests", "integrationFolder": "tests",
"supportFile": "support", "supportFile": "support",
"baseUrl": "http://localhost:7575", "xbaseUrl": "http://localhost:7575",
"xxbaseUrl": "https://test.helloayanova.com", "baseUrl": "https://test.helloayanova.com",
"xxxxbaseUrl": "http://localhost:8080", "xxxxbaseUrl": "http://localhost:8080",
"video": false, "video": false,
"env": { "env": {
"apiBaseUrl": "http://localhost:7575/api/v8.0/", "xapiBaseUrl": "http://localhost:7575/api/v8.0/",
"xapiBaseUrl": "https://test.helloayanova.com/api/v8.0/", "apiBaseUrl": "https://test.helloayanova.com/api/v8.0/",
"admin": { "admin": {
"login": "superuser", "login": "superuser",
"password": "l3tm3in" "password": "l3tm3in"

View File

@@ -63,10 +63,7 @@ Cypress.Commands.add("ayChooseExistingTags", (dataCyTag, tagList) => {
}); });
Cypress.Commands.add("aySetTestableUserOptions", () => { Cypress.Commands.add("aySetTestableUserOptions", () => {
// cy.get("[data-cy=navicon]").click(); cy.visit("/home-user-settings");
// cy.get("[data-cy=home]").click();
// cy.get("[data-cy='nav/home-user-settings']").click();
cy.visit('/home-user-settings');
cy.url().should("include", "/home-user-settings"); cy.url().should("include", "/home-user-settings");
cy.get("[data-cy='nativeDateTimeInput']").check({ force: true }); cy.get("[data-cy='nativeDateTimeInput']").check({ force: true });
}); });

View File

@@ -96,11 +96,6 @@ describe("SMOKE HOME SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=pickListSelectedUserId]"); cy.get("[data-cy=pickListSelectedUserId]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -44,11 +44,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
// cy.url().should("include", "/cust-users/0"); // cy.url().should("include", "/cust-users/0");
// cy.get("[data-cy=customerId]"); // cy.get("[data-cy=customerId]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -75,11 +75,7 @@ describe("SMOKE INVENTORY", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=description]"); cy.get("[data-cy=description]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -13,12 +13,7 @@ describe("SMOKE VENDORS SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });
}); });

View File

@@ -34,11 +34,7 @@ describe("SMOKE", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -73,11 +73,7 @@ describe("SMOKE ADMIN SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=ayaType]"); cy.get("[data-cy=ayaType]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -48,11 +48,6 @@ describe("SMOKE OPERATIONS SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=configCard]"); cy.get("[data-cy=configCard]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -45,11 +45,6 @@ describe("SMOKE MISC", () => {
cy.url().should("include", "/no-features-available"); cy.url().should("include", "/no-features-available");
cy.get("[data-cy=NFA]"); cy.get("[data-cy=NFA]");
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -16,11 +16,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
//path: "/customer-workorders/:recordid", //path: "/customer-workorders/:recordid",
//path: "/customer-csr/:recordid" //path: "/customer-csr/:recordid"
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });

View File

@@ -0,0 +1,28 @@
// Basic smoke test, visit every form to ensure they load
describe("SMOKE NAV", () => {
it("Nav and menu functions correctly", () => {
cy.ayLogin("admin");
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=home]").click();
cy.get("[data-cy='nav/home-memos']").click();
// cy.visit("/vendors");
// cy.url().should("include", "/vendors");
// cy.get("[data-cy=generalerror]").should("not.exist");
// cy.get("[data-cy=vendorsTable]");
// cy.visit("/vendors/1");
// cy.url().should("include", "vendors/1");
// cy.get("[data-cy=generalerror]").should("not.exist");
// cy.get("[data-cy=name]");
// //LOGOUT
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy=logout]").click();
// cy.url().should("include", "/login");
// cy.get("[data-cy=generalerror]").should("not.exist");
//-----------------------------------------------------
});
});

View File

@@ -1,20 +1,12 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
describe.skip("When Accounting user logs in", () => { describe("Login nav menu", () => {
it("should set up accounting block user options", () => { it("should display user name", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
//open nav pane //open nav pane
cy.get("[data-cy=navicon]").click(); cy.get("[data-cy=navicon]").click();
cy.contains("- Accounting"); //part of name displayed at top 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
//----------------------------------------------------- //-----------------------------------------------------
}); });
}); });

View File

@@ -1,50 +1,48 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
describe("Memo features", () => { describe("Memo features", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=home]").click(); cy.visit("/home-memos");
cy.get("[data-cy='nav/home-memos']").click(); cy.url().should("include", "/home-memos");
cy.url().should("include", "/home-memos"); cy.get("[data-cy=memosTable]");
cy.get("[data-cy=memosTable]"); cy.get("[data-cy='memo-list:new']").click();
cy.get("[data-cy='memo-list:new']").click(); cy.url().should("include", "/home-memos/");
cy.url().should("include", "/home-memos/"); cy.get("[data-cy=pickListSelectedUserId]")
cy.get("[data-cy=pickListSelectedUserId]") .click()
.click() .type("accounting{downarrow}{enter}"); //select Accounting user (self)
.type("accounting{downarrow}{enter}"); //select Accounting user (self) cy.get("[data-cy=name]").type(
cy.get("[data-cy=name]").type( `${Cypress.config("cyid")}-test-subject{enter}`
`${Cypress.config("cyid")}-test-subject{enter}` );
); cy.get("[data-cy=notes]").type(
cy.get("[data-cy=notes]").type( `The quick brown fox jumped{enter}over the six lazy dogs{enter}eot`
`The quick brown fox jumped{enter}over the six lazy dogs{enter}eot` );
); cy.ayChooseExistingTags("tags", ["zone1", "blue", "zone2"]);
cy.ayChooseExistingTags("tags",['zone1','blue','zone2']); cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click();
cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click(); cy.url().should("include", "/home-memos");
cy.url().should("include", "/home-memos"); //wait for nav cy.contains(`${Cypress.config("cyid")}-test-subject`).click(); //find and open memo record
cy.contains(`${Cypress.config("cyid")}-test-subject`).click(); //find and open memo record cy.contains("zone1");
cy.contains("zone1"); cy.contains("blue");
cy.contains("blue"); cy.contains("zone2");
cy.contains("zone2");
//reply
//reply cy.get("[data-cy=contextmenu]").click();
cy.get("[data-cy=contextmenu]").click(); cy.get("[data-cy='memo-edit:reply']").click();
cy.get("[data-cy='memo-edit:reply']").click(); cy.url().should("include", "/home-memos/");
cy.url().should("include", "/home-memos/"); cy.get("[data-cy=notes]").type(`this is my reply`);
cy.get("[data-cy=notes]").type(`this is my reply`); cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click();
cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click(); cy.contains(`RE: ${Cypress.config("cyid")}-test-subject`).click(); //find and open reply
cy.contains(`RE: ${Cypress.config("cyid")}-test-subject`).click(); //find and open reply
//forward to superuser
//forward to superuser cy.get("[data-cy=contextmenu]").click();
cy.get("[data-cy=contextmenu]").click(); cy.get("[data-cy='memo-edit:forward']").click();
cy.get("[data-cy='memo-edit:forward']").click(); cy.url().should("include", "/home-memos/");
cy.url().should("include", "/home-memos/"); cy.get("[data-cy=notes]").type(
cy.get("[data-cy=notes]").type( `Hello SuperUser this is my forward to you!{enter}eot{enter}`
`Hello SuperUser this is my forward to you!{enter}eot{enter}` );
); cy.get("[data-cy=pickListSelectedUserId]")
cy.get("[data-cy=pickListSelectedUserId]") .click()
.click() .type("SuperUser{downarrow}{enter}");
.type("SuperUser{downarrow}{enter}"); cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click();
cy.get("[data-cy='memo-edit:save'] > .v-btn__content").click();
});
}); });
});

View File

@@ -15,9 +15,6 @@ describe("Reminder features", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.aySetTestableUserOptions(); cy.aySetTestableUserOptions();
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy=home]").click();
// cy.get("[data-cy='nav/home-reminders']").click();
cy.visit("/home-reminders"); cy.visit("/home-reminders");
cy.url().should("include", "/home-reminders"); cy.url().should("include", "/home-reminders");
cy.get("[data-cy='reminder-list:new']:first").click(); cy.get("[data-cy='reminder-list:new']:first").click();
@@ -32,14 +29,10 @@ describe("Reminder features", () => {
cy.get("[data-cy=notes]").type(`This is a reminder{enter}eot{enter}`); cy.get("[data-cy=notes]").type(`This is a reminder{enter}eot{enter}`);
cy.get(".v-color-picker__input > input").clear().type("#11E1D07E{enter}"); //select a color cy.get(".v-color-picker__input > input").clear().type("#11E1D07E{enter}"); //select a color
cy.get('[data-cy="reminder-edit:save"] > .v-btn__content').click(); cy.get('[data-cy="reminder-edit:save"] > .v-btn__content').click();
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy='nav/home-reminders']").click();
cy.visit("/home-reminders"); cy.visit("/home-reminders");
cy.url().should("include", "/home-reminders"); cy.url().should("include", "/home-reminders");
//should show reminder made above in month display by default //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.visit("/home-schedule"); cy.visit("/home-schedule");
cy.url().should("include", "/home-schedule"); cy.url().should("include", "/home-schedule");
cy.contains(`${Cypress.config("cyid")}-test-reminder`); cy.contains(`${Cypress.config("cyid")}-test-reminder`);

View File

@@ -3,10 +3,6 @@ describe("Notify subscribe", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.aySetTestableUserOptions(); cy.aySetTestableUserOptions();
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy=home]").click();
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy='nav/home-notify-subscriptions']").click();
cy.visit("/home-notify-subscriptions"); cy.visit("/home-notify-subscriptions");
cy.url().should("include", "/home-notify-subscriptions"); cy.url().should("include", "/home-notify-subscriptions");
cy.get("[data-cy='notify-subscriptions:new']:first").click(); cy.get("[data-cy='notify-subscriptions:new']:first").click();
@@ -14,9 +10,6 @@ describe("Notify subscribe", () => {
cy.ayChooseVSelect("eventType", "Object created"); cy.ayChooseVSelect("eventType", "Object created");
cy.ayChooseVSelect("ayaType", "Contract"); cy.ayChooseVSelect("ayaType", "Contract");
cy.get("[data-cy='notify-subscription:save'] > .v-btn__content").click(); cy.get("[data-cy='notify-subscription:save'] > .v-btn__content").click();
//confirm
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy='nav/home-notify-subscriptions']").click();
cy.visit("/home-notify-subscriptions"); cy.visit("/home-notify-subscriptions");
cy.url().should("include", "/home-notify-subscriptions"); cy.url().should("include", "/home-notify-subscriptions");
cy.contains("Object created"); cy.contains("Object created");

View File

@@ -15,11 +15,8 @@ describe("Contract create, review, history", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.aySetTestableUserOptions(); cy.aySetTestableUserOptions();
// cy.get("[data-cy=navicon]").click(); cy.visit("/svc-contracts");
// cy.get("[data-cy=accounting]").click();
// cy.get("[data-cy='nav/svc-contracts']").click();
cy.visit('/svc-contracts')
cy.url().should("include", "/svc-contracts"); cy.url().should("include", "/svc-contracts");
cy.get("[data-cy=contractsTable]"); cy.get("[data-cy=contractsTable]");
cy.get("[data-cy='contract-list:new']:first").click(); cy.get("[data-cy='contract-list:new']:first").click();
@@ -35,12 +32,9 @@ describe("Contract create, review, history", () => {
`Test contract alert message{enter}eot{enter}` `Test contract alert message{enter}eot{enter}`
); );
cy.get("[data-cy='contract-edit:save'] > .v-btn__content").click(); cy.get("[data-cy='contract-edit:save'] > .v-btn__content").click();
// cy.get("[data-cy=navicon]").click(); cy.visit("/svc-contracts");
// cy.get("[data-cy='nav/svc-contracts']").click();
cy.visit('/svc-contracts')
cy.url().should("include", "/svc-contracts"); cy.url().should("include", "/svc-contracts");
//REVIEW CONTRACT //REVIEW CONTRACT
cy.contains(`${Cypress.config("cyid")}-test-contract`).click(); //open it cy.contains(`${Cypress.config("cyid")}-test-contract`).click(); //open it
cy.get("[data-cy=contextmenu]").click(); cy.get("[data-cy=contextmenu]").click();
@@ -61,11 +55,7 @@ describe("Contract create, review, history", () => {
//confirm it's in the list //confirm it's in the list
cy.contains(`${Cypress.config("cyid")}-test-review`); cy.contains(`${Cypress.config("cyid")}-test-review`);
cy.contains(`${Cypress.config("cyid")}-test-contract`); cy.contains(`${Cypress.config("cyid")}-test-contract`);
//should show review made above in schedule cy.visit("/home-schedule");
// cy.get("[data-cy=navicon]").click();
// cy.get("[data-cy=home]").click();
//cy.get("[data-cy='nav/home-schedule']").click();
cy.visit('/home-schedule')
cy.url().should("include", "/home-schedule"); cy.url().should("include", "/home-schedule");
cy.get(".v-present > .v-calendar-weekly__day-label > .v-btn").click({ cy.get(".v-present > .v-calendar-weekly__day-label > .v-btn").click({
force: true force: true
@@ -74,14 +64,12 @@ describe("Contract create, review, history", () => {
cy.contains(`${Cypress.config("cyid")}-test-review`); cy.contains(`${Cypress.config("cyid")}-test-review`);
//HISTORY //HISTORY
cy.get("[data-cy=navicon]").click(); //NOTE: this must be done through menu or else would need to lookup user id etc
cy.get("[data-cy=home]").click(); cy.get("[data-cy=navicon]").click();
cy.get("[data-cy='nav/home-history']").click(); cy.get("[data-cy=home]").click();
//cy.visit("/history"); cy.get("[data-cy='nav/home-history']").click();
cy.url().should("include", "/history"); cy.url().should("include", "/history");
cy.contains(`${Cypress.config("cyid")}-test-contract`); cy.contains(`${Cypress.config("cyid")}-test-contract`);
cy.contains(`${Cypress.config("cyid")}-test-review`); cy.contains(`${Cypress.config("cyid")}-test-review`);
// cy.contains(`${Cypress.config("cyid")}-test-reminder`);
// cy.contains(`${Cypress.config("cyid")}-test-subject`);
}); });
}); });

View File

@@ -2,9 +2,8 @@
describe("Service rate", () => { describe("Service rate", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=accounting]").click(); cy.visit("/acc-service-rates");
cy.get("[data-cy='nav/acc-service-rates']").click();
cy.url().should("include", "/acc-service-rates"); cy.url().should("include", "/acc-service-rates");
cy.get("[data-cy=serviceRatesTable]"); cy.get("[data-cy=serviceRatesTable]");
cy.get("[data-cy='service-rate-list:new']:first").click(); cy.get("[data-cy='service-rate-list:new']:first").click();
@@ -19,8 +18,7 @@ describe("Service rate", () => {
cy.ayChooseVSelect("unit", "hour"); cy.ayChooseVSelect("unit", "hour");
cy.get("[data-cy=notes]").type(`Test svc rate NOTES!!!{enter}eot{enter}`); cy.get("[data-cy=notes]").type(`Test svc rate NOTES!!!{enter}eot{enter}`);
cy.get("[data-cy='service-rate-edit:save'] > .v-btn__content").click(); cy.get("[data-cy='service-rate-edit:save'] > .v-btn__content").click();
cy.get("[data-cy=navicon]").click(); cy.visit("/acc-service-rates");
cy.get("[data-cy='nav/acc-service-rates']").click();
cy.url().should("include", "/acc-service-rates"); cy.url().should("include", "/acc-service-rates");
cy.contains(`${Cypress.config("cyid")}-test-service-rate`); cy.contains(`${Cypress.config("cyid")}-test-service-rate`);

View File

@@ -2,9 +2,7 @@
describe("Travel rate", () => { describe("Travel rate", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.get("[data-cy=navicon]").click(); cy.visit("/acc-travel-rates");
cy.get("[data-cy=accounting]").click();
cy.get("[data-cy='nav/acc-travel-rates']").click();
cy.url().should("include", "/acc-travel-rates"); cy.url().should("include", "/acc-travel-rates");
cy.get("[data-cy=travelRatesTable]"); cy.get("[data-cy=travelRatesTable]");
cy.get("[data-cy='travel-rate-list:new']:first").click(); cy.get("[data-cy='travel-rate-list:new']:first").click();
@@ -19,8 +17,8 @@ describe("Travel rate", () => {
cy.get("[data-cy=unit]").type("{downarrow}{enter}"); //choose first in list cy.get("[data-cy=unit]").type("{downarrow}{enter}"); //choose first in list
cy.get("[data-cy=notes]").type(`Test trvl rate NOTES!!!{enter}eot{enter}`); cy.get("[data-cy=notes]").type(`Test trvl rate NOTES!!!{enter}eot{enter}`);
cy.get("[data-cy='travel-rate-edit:save'] > .v-btn__content").click(); cy.get("[data-cy='travel-rate-edit:save'] > .v-btn__content").click();
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy='nav/acc-travel-rates']").click(); cy.visit("/acc-travel-rates");
cy.url().should("include", "/acc-travel-rates"); cy.url().should("include", "/acc-travel-rates");
cy.contains(`${Cypress.config("cyid")}-test-travel-rate`); cy.contains(`${Cypress.config("cyid")}-test-travel-rate`);

View File

@@ -1,11 +1,8 @@
/// <reference types="cypress" /> /// <reference types="cypress" />
describe("Tax code", () => { describe("Tax code", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("accounting"); cy.ayLogin("accounting");
cy.get("[data-cy=navicon]").click(); cy.visit("/acc-tax-codes");
cy.get("[data-cy=accounting]").click();
cy.get("[data-cy='nav/acc-tax-codes']").click();
cy.url().should("include", "/acc-tax-codes"); cy.url().should("include", "/acc-tax-codes");
cy.get("[data-cy=taxCodesTable]"); cy.get("[data-cy=taxCodesTable]");
cy.get("[data-cy='tax-code-list:new']:first").click(); cy.get("[data-cy='tax-code-list:new']:first").click();
@@ -17,9 +14,8 @@ describe("Tax code", () => {
cy.get("[data-cy=taxBPct]").type("5"); cy.get("[data-cy=taxBPct]").type("5");
cy.get("[data-cy=notes]").type(`Test tax code NOTES!!!{enter}eot{enter}`); cy.get("[data-cy=notes]").type(`Test tax code NOTES!!!{enter}eot{enter}`);
cy.get("[data-cy='tax-code-edit:save'] > .v-btn__content").click(); cy.get("[data-cy='tax-code-edit:save'] > .v-btn__content").click();
cy.get("[data-cy=navicon]").click(); cy.visit("/acc-tax-codes");
cy.get("[data-cy='nav/acc-tax-codes']").click();
cy.url().should("include", "/acc-tax-codes"); cy.url().should("include", "/acc-tax-codes");
cy.contains(`${Cypress.config("cyid")}-test-tax-code`); cy.contains(`${Cypress.config("cyid")}-test-tax-code`);

View File

@@ -6,14 +6,7 @@ describe("Workorder creation", () => {
it("should work", () => { it("should work", () => {
cy.ayLogin("service"); cy.ayLogin("service");
cy.aySetTestableUserOptions(); cy.aySetTestableUserOptions();
//open nav pane cy.visit("/svc-workorders");
cy.get("[data-cy=navicon]").click();
cy.contains("- Service"); //part of name displayed at top
//WORKORDER
cy.get("[data-cy=service]").click(); //only if not setting project above
cy.get("[data-cy='nav/svc-workorders']").click();
cy.url().should("include", "/svc-workorders"); cy.url().should("include", "/svc-workorders");
cy.get("[data-cy=workordersTable]"); cy.get("[data-cy=workordersTable]");
cy.get("[data-cy='workorder-list:new']:first").click(); cy.get("[data-cy='workorder-list:new']:first").click();