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

Repro #25715: Blank admin panel page for `null` database details (#28138)

[ci skip]
parent 919d02ae
No related branches found
No related tags found
No related merge requests found
......@@ -131,4 +131,29 @@ describe("scenarios > admin > databases > list", () => {
cy.findByRole("status").should("not.exist");
});
it.skip("should handle malformed (null) database details (metabase#25715)", () => {
cy.request("GET", "/api/database/1").then(({ body }) => {
const stubbedResponse = {
...body,
details: null,
};
cy.intercept("GET", "/api/database/1", req => {
req.reply({ body: stubbedResponse });
}).as("loadDatabase");
});
cy.visit("/admin/databases/1");
cy.wait("@loadDatabase");
// It is unclear how this issue will be handled,
// but at the very least it shouldn't render the blank page.
cy.get("nav").should("contain", "Metabase Admin");
// The response still contains the database name,
// so there's no reason we can't display it.
cy.contains(/Sample Database/i);
// This seems like a reasonable CTA if the database is beyond repair.
cy.button("Remove this database");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment