Files
raven-test/e2e/tests/regression/accounting-user/0800-tax-code.js
2021-12-21 16:19:38 +00:00

24 lines
820 B
JavaScript

/// <reference types="cypress" />
describe("Tax code", () => {
it("should work", () => {
cy.ayLogin("accounting");
cy.visit("/acc-tax-codes");
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.visit("/acc-tax-codes");
cy.url().should("include", "/acc-tax-codes");
cy.contains(`${Cypress.config("cyid")}-test-tax-code`);
});
});