diff --git a/e2e/tests/regression/accounting-user/0800-tax-code.js b/e2e/tests/regression/accounting-user/0800-tax-code.js new file mode 100644 index 0000000..015fe63 --- /dev/null +++ b/e2e/tests/regression/accounting-user/0800-tax-code.js @@ -0,0 +1,27 @@ +/// +describe("Tax code", () => { + it("should work", () => { + cy.ayLogin("accounting"); + cy.get("[data-cy=navicon]").click(); + cy.get("[data-cy=accounting]").click(); + + cy.get("[data-cy='nav/acc-tax-codes']").click(); + cy.url().should("include", "/acc-tax-codes"); + cy.get("[data-cy=taxCodesTable]"); + cy.get("[data-cy='tax-code-list:new']:first").click(); + cy.get("[data-cy=name]").type( + `${Cypress.config("cyid")}-test-tax-code{enter}` + ); + + cy.get("[data-cy=taxAPct]").type("7"); + cy.get("[data-cy=taxBPct]").type("5"); + + 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=navicon]").click(); + cy.get("[data-cy='nav/acc-tax-codes']").click(); + cy.url().should("include", "/acc-tax-codes"); + cy.contains(`${Cypress.config("cyid")}-test-tax-code`); + + }); +}); diff --git a/e2e/tests/regression/accounting-user/0900-notification-arrived.js b/e2e/tests/regression/accounting-user/0900-notification-arrived.js new file mode 100644 index 0000000..0797883 --- /dev/null +++ b/e2e/tests/regression/accounting-user/0900-notification-arrived.js @@ -0,0 +1,14 @@ +/// +describe("Tax code", () => { + it("should work", () => { + cy.ayLogin("accounting"); + + + cy.get("[data-cy=notification]").click(); + cy.url().should("include", "/home-notifications"); + cy.contains("Object created"); + //Going to assume this is a virgin run so test contract text should be there but not going to assume it's due to current run so not checking for cyid + //cy.contains(`${Cypress.config("cyid")}-test-contract`); + cy.contains('-test-contract'); + }); +});