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 revision-history dashboard test (#78280)

github-automation-metabase3ea4987f1f9f
diff --git a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
index 42fc360d748..ca795882456 100644
--- a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
+++ b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
@@ -388,8 +388,12 @@ describe("issue 16559", () => {
H.openQuestionsSidebar();
H.sidebar().findByText("Orders, Count").click();
cy.wait("@cardQuery");
- cy.button("Save").click();
- cy.wait("@saveDashboard");
+ // Use the canonical save helper so we deterministically wait for the whole
+ // save-and-settle sequence (PUT + query_metadata reload, edit-bar gone, all
+ // dashcards loaded). The previous ad-hoc `Save` click only awaited the PUT,
+ // so the "More info" click below raced the trailing re-render and was
+ // dropped, leaving the sidesheet closed.
+ H.saveDashboard();
H.openDashboardInfoSidebar().within(() => {
cy.contains("button", "History").click();