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

[E2E] Make sure we can add Mongo using its connection string (#28087)

parent edd0faad
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,34 @@ describe(
});
});
it("should add Mongo database via the connection string", () => {
const connectionString = `mongodb://metabase:metasample123@localhost:${QA_MONGO_PORT}/sample?authSource=admin`;
cy.contains("MongoDB").click({ force: true });
cy.findByText("Paste a connection string").click();
typeAndBlurUsingLabel("Display name", "QA Mongo4");
cy.findByLabelText("Port").should("not.exist");
cy.findByLabelText("Paste your connection string").type(
connectionString,
{ delay: 0 },
);
cy.findByText("Save").should("not.be.disabled").click();
cy.wait("@createDatabase");
cy.url().should("match", /\/admin\/databases\?created=true$/);
cy.findByRole("table").within(() => {
cy.findByText("QA Mongo4");
});
cy.findByRole("status").within(() => {
cy.findByText("Syncing…");
cy.findByText("Done!");
});
});
it("should add MySQL database and redirect to listing", () => {
cy.contains("MySQL").click({ force: true });
cy.findByText("Show advanced options").click();
......
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