This commit is contained in:
2021-12-20 20:34:16 +00:00
parent 19b58f280f
commit aa9871484d

View File

@@ -0,0 +1,24 @@
/// <reference types="cypress" />
describe("Notify subscribe", () => {
it("should work", () => {
cy.ayLogin("accounting");
cy.aySetTestableUserOptions();
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=home]").click();
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy='nav/home-notify-subscriptions']").click();
cy.url().should("include", "/home-notify-subscriptions");
cy.get("[data-cy='notify-subscriptions:new']:first").click();
cy.url().should("include", "/home-notify-subscriptions/0");
cy.ayChooseVSelect("eventType", "Object created");
cy.ayChooseVSelect("ayaType", "Contract");
cy.get("[data-cy='notify-subscription:save'] > .v-btn__content").click();
//confirm
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy='nav/home-notify-subscriptions']").click();
cy.url().should("include", "/home-notify-subscriptions");
cy.contains("Object created");
cy.contains("Contract");
cy.contains("Deliver in application");
});
});