diff --git a/frontend/test/metabase/scenarios/question/reproductions/13468.cy.spec.js b/frontend/test/metabase/scenarios/question/reproductions/13468.cy.spec.js new file mode 100644 index 0000000000000000000000000000000000000000..500f755cd88aa652702b3ebf70582e5101cb16a5 --- /dev/null +++ b/frontend/test/metabase/scenarios/question/reproductions/13468.cy.spec.js @@ -0,0 +1,35 @@ +import { restore, openOrdersTable } from "__support__/e2e/cypress"; + +describe.skip("issue 13468", () => { + beforeEach(() => { + cy.intercept("POST", "/api/dataset").as("dataset"); + restore(); + cy.signInAsAdmin(); + }); + + it("should not show run overlay after save on a joined question (metabase#13468)", () => { + openOrdersTable({ mode: "notebook" }); + + cy.findByText("Join data").click(); + cy.findByText("Products").click(); + + visualizeResults(); + + saveQuestion(); + + // Cypress cannot click elements that are blocked by an overlay so this will immediately fail if the issue is not fixed + cy.findByText("110.93").click(); + cy.findByText("Filter by this value"); + }); +}); + +function visualizeResults() { + cy.button("Visualize").click(); + cy.wait("@dataset"); +} + +function saveQuestion() { + cy.findByText("Save").click(); + cy.button("Save").click(); + cy.button("Not now").click(); +}