Skip to content
Snippets Groups Projects
Unverified Commit 8c33a9d4 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

#17657 Repro: Subscriptions are enabled without the recipient, which leads to an error (#17666)

parent 23f6b761
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import {
describeWithToken,
popover,
mockSessionProperty,
sidebar,
} from "__support__/e2e/cypress";
import { USERS } from "__support__/e2e/cypress_data";
const { admin } = USERS;
......@@ -77,6 +78,23 @@ describe("scenarios > dashboard > subscriptions", () => {
});
describe("with no existing subscriptions", () => {
it.skip("should not enable subscriptions without the recepient (metabase#17657)", () => {
openDashboardSubscriptions();
cy.findByText("Email it").click();
// Make sure no recipients have been assigned
cy.findByPlaceholderText("Enter user names or email addresses");
// Change the schedule to "Monthly"
cy.findByText("Hourly").click();
cy.findByText("Monthly").click();
sidebar().within(() => {
cy.button("Done").should("be.disabled");
});
});
it("should allow creation of a new email subscription", () => {
createEmailSubscription();
cy.findByText("Emailed hourly");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment