migration from cypress 9 to cypress 10

This commit is contained in:
2022-08-07 19:26:07 +00:00
parent 38572219bc
commit 8f37876a9d
31 changed files with 41 additions and 32 deletions

View File

@@ -0,0 +1,23 @@
/// <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`);
});
});