This commit is contained in:
2021-12-20 20:52:52 +00:00
parent f530796ead
commit da5d6e3647
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/// <reference types="cypress" />
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`);
});
});

View File

@@ -0,0 +1,14 @@
/// <reference types="cypress" />
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');
});
});