This commit is contained in:
27
e2e/tests/regression/accounting-user/0800-tax-code.js
Normal file
27
e2e/tests/regression/accounting-user/0800-tax-code.js
Normal 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`);
|
||||
|
||||
});
|
||||
});
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user