42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
// Basic smoke test, visit every form to ensure they load
|
|
|
|
describe("SMOKE", () => {
|
|
it("Every form opens without error", () => {
|
|
cy.ayLogin("accounting");
|
|
|
|
cy.visit("/acc-service-rates");
|
|
cy.url().should("include", "/acc-service-rates");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=serviceRatesTable]");
|
|
|
|
cy.visit("/acc-service-rates/1");
|
|
cy.url().should("include", "/acc-service-rates/1");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=name]");
|
|
|
|
cy.visit("/acc-travel-rates");
|
|
cy.url().should("include", "/acc-travel-rates");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=travelRatesTable]");
|
|
|
|
cy.visit("/acc-travel-rates/1");
|
|
cy.url().should("include", "/acc-travel-rates/1");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=name]");
|
|
|
|
cy.visit("/acc-tax-codes");
|
|
cy.url().should("include", "/acc-tax-codes");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=taxCodesTable]");
|
|
|
|
cy.visit("/acc-tax-codes/1");
|
|
cy.url().should("include", "/acc-tax-codes/1");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=name]");
|
|
|
|
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|