Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix flaky models/reproductions test (#64677)

Kamil Mielnikd5addc4c5933
diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.ts b/e2e/test/scenarios/models/reproductions.cy.spec.ts
index a451c880701..7c68788adfa 100644
--- a/e2e/test/scenarios/models/reproductions.cy.spec.ts
+++ b/e2e/test/scenarios/models/reproductions.cy.spec.ts
@@ -1990,10 +1990,16 @@ describe("issue 50915", () => {
cy.findByTestId("dataset-edit-bar").button("Save").click();
cy.findByTestId("save-question-modal").button("Save").click();
H.queryBuilderHeader().should("be.visible");
+ H.queryBuilderMain()
+ .findByText("37.65", { timeout: 10000 })
+ .should("be.visible");
cy.log("immediately after saving, drill-thru");
H.tableHeaderClick("Discount ($)");
H.popover().findByText("Distinct values").click();
+ H.queryBuilderMain()
+ .findByText("1,115", { timeout: 10000 })
+ .should("be.visible");
H.assertTableData({ columns: ["Distinct values of Discount"] });
cy.log("assert that the model is used for the data source");