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

#14749 Repro: Email settings "Save changes" button enabled without any changes [ci skip] (#14798)

parent 42e5d443
Branches
Tags
No related merge requests found
......@@ -5,6 +5,7 @@ import {
version,
popover,
itOpenSourceOnly,
setupDummySMTP,
} from "__support__/cypress";
describe("scenarios > admin > settings", () => {
......@@ -327,6 +328,7 @@ describe("scenarios > admin > settings", () => {
cy.findByText("Send test email").click();
cy.findByText("Sorry, something went wrong. Please try again.");
});
it("should be able to clear email settings", () => {
cy.visit("/admin/settings/email");
cy.findByText("Clear").click();
......@@ -337,6 +339,16 @@ describe("scenarios > admin > settings", () => {
"",
);
});
it.skip("should not offer to save email changes when there aren't any (metabase#14749)", () => {
// Make sure some settings are already there
setupDummySMTP();
cy.visit("/admin/settings/email");
cy.findByText("Send test email").scrollIntoView();
// Needed to scroll the page down first to be able to use findByRole() - it fails otherwise
cy.findByRole("button", { name: "Save changes" }).should("be.disabled");
});
});
describe(" > slack settings", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment