The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
E2E repro for "Model is being expanded to data sources after edit/distribute" (#62671)
Alexander Polyankin454598b4c093
diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.ts b/e2e/test/scenarios/models/reproductions.cy.spec.tsindex 863d1221f69..8f6a2f9022a 100644--- a/e2e/test/scenarios/models/reproductions.cy.spec.ts+++ b/e2e/test/scenarios/models/reproductions.cy.spec.ts@@ -2021,3 +2021,39 @@ describe.skip("issue 45919", () => {H.tableInteractiveHeader().findByText("Email").should("be.visible");});});++describe("issue 50915", () => {+ beforeEach(() => {+ H.restore();+ cy.signInAsNormalUser();+ });++ it("should use the model for the data source for drills after the model is created (metabase#50915)", () => {+ cy.log("create a model via the UI");+ cy.visit("/model/new");+ H.main().findByText("Use the notebook editor").click();+ H.entityPickerModal().within(() => {+ H.entityPickerModalTab("Tables").click();+ cy.findByText("Orders").click();+ });+ H.join();+ H.entityPickerModal().within(() => {+ H.entityPickerModalTab("Tables").click();+ cy.findByText("People").click();+ });+ cy.findByTestId("dataset-edit-bar").button("Save").click();+ cy.findByTestId("save-question-modal").button("Save").click();+ H.queryBuilderHeader().should("be.visible");++ cy.log("immediately after saving, drill-thru");+ H.tableHeaderClick("Discount ($)");+ H.popover().findByText("Distinct values").click();+ H.assertTableData({ columns: ["Distinct values of Discount"] });++ cy.log("assert that the model is used for the data source");+ H.openNotebook();+ H.getNotebookStep("data")+ .findByText("Orders + People")+ .should("be.visible");+ });+});