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

#18148 Repro: "Save" button shouldn't appear before one selects the source for...

#18148 Repro: "Save" button shouldn't appear before one selects the source for a native question (#18259)
parent f94c3c96
No related branches found
No related tags found
No related merge requests found
import { restore } from "__support__/e2e/cypress";
const dbName = "Sample2";
describe("issue 18148", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.addH2SampleDataset({
name: dbName,
});
cy.visit("/");
cy.icon("sql").click();
});
it("should not offer to save the question before it is actually possible to save it (metabase#18148)", () => {
cy.findByText("Select a database");
cy.findByText("Save").should("have.class", "disabled");
cy.findByText(dbName).click();
cy.get(".ace_content")
.should("be.visible")
.type("select foo");
cy.findByText("Save").click();
cy.get(".Modal").should("exist");
});
});
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