From aa9871484d1f05a2cb441a32fea5c1e17151d9aa Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 20 Dec 2021 20:34:16 +0000 Subject: [PATCH] --- .../accounting-user/0400-notify-subscribe.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 e2e/tests/regression/accounting-user/0400-notify-subscribe.js diff --git a/e2e/tests/regression/accounting-user/0400-notify-subscribe.js b/e2e/tests/regression/accounting-user/0400-notify-subscribe.js new file mode 100644 index 0000000..1531655 --- /dev/null +++ b/e2e/tests/regression/accounting-user/0400-notify-subscribe.js @@ -0,0 +1,24 @@ +/// +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"); + }); +});