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 dashcard-duplicate parameters e2e test (#76374)

github-automation-metabase0c6374742ff3
diff --git a/e2e/test/scenarios/dashboard-filters/parameters.cy.spec.js b/e2e/test/scenarios/dashboard-filters/parameters.cy.spec.js
index 78bff968a7d..f811e7a21b6 100644
--- a/e2e/test/scenarios/dashboard-filters/parameters.cy.spec.js
+++ b/e2e/test/scenarios/dashboard-filters/parameters.cy.spec.js
@@ -2313,6 +2313,11 @@ describe("scenarios > dashboard > parameters", () => {
});
cy.intercept("PUT", "/api/dashboard/*").as("updateDashboard");
+ cy.log("Wait for the dashcard to finish rendering before editing");
+ H.getDashboardCard(0)
+ .findByTestId("chart-container")
+ .should("be.visible");
+
// Connect the Count filter in the header to first card
H.editingDashboardParametersContainer().findByText("Count").click();
H.selectDashboardFilter(H.getDashboardCard(0), "Count");