Files
raven-test/e2e/tests/regression/accounting-user/0400-notify-subscribe.js
2021-12-21 16:19:38 +00:00

20 lines
822 B
JavaScript

/// <reference types="cypress" />
describe("Notify subscribe", () => {
it("should work", () => {
cy.ayLogin("accounting");
cy.aySetTestableUserOptions();
cy.visit("/home-notify-subscriptions");
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();
cy.visit("/home-notify-subscriptions");
cy.url().should("include", "/home-notify-subscriptions");
cy.contains("Object created");
cy.contains("Contract");
cy.contains("Deliver in application");
});
});