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

Unskip "email" part of the reproduction for #16226 (#17623)

parent 029d7178
Branches
Tags
No related merge requests found
......@@ -82,7 +82,9 @@ describe("scenarios > admin > settings > email settings", () => {
cy.button("Save changes").should("be.disabled");
});
it.skip("should not reset previously populated fields when validation fails for just one of them (metabase#16226)", () => {
it("should not reset previously populated fields when validation fails for just one of them (metabase#16226)", () => {
cy.intercept("PUT", "/api/email").as("updateSettings");
cy.visit("/admin/settings/email");
// First we fill out wrong settings
......@@ -104,7 +106,9 @@ describe("scenarios > admin > settings > email settings", () => {
// Trying to save will trigger the error (as it should)
cy.button("Save changes").click();
cy.findByText("Sorry, something went wrong. Please try again.");
cy.wait("@updateSettings");
cy.contains("Wrong host or port");
// But it shouldn't delete field values
cy.findByDisplayValue("mailer@metabase.test");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment