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

Repro #19776: New data picker shows blank after archiving a model (#20138)

parent d3d681cb
No related branches found
No related tags found
No related merge requests found
import { restore, popover } from "__support__/e2e/cypress";
const modelName = "Orders Model";
describe("issue 19776", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.request("PUT", "/api/card/1", { name: modelName, dataset: true });
});
it("should show moved model in the data picker without refreshing (metabase#19776)", () => {
cy.visit("/collection/root");
openEllipsisMenuFor(modelName);
popover()
.contains("Archive")
.click();
cy.findByText("Archived model");
cy.findByText("New").click();
cy.findByText("Question")
.should("be.visible")
.click();
cy.findByText("Sample Database");
cy.findByText("Saved Questions");
cy.findByText("Models").should("not.exist");
});
});
function openEllipsisMenuFor(item) {
cy.findByText(item)
.closest("tr")
.find(".Icon-ellipsis")
.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