24 lines
820 B
JavaScript
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`);
|
|
|
|
});
|
|
});
|