Skip to content

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

Stabilize pivot dashcard drill flake in dashboard-filters-misc (#76491)

github-automation-metabase18da9c7f4007
diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-misc.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-misc.cy.spec.ts
index 07900b841f2..1be528b12f2 100644
--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-misc.cy.spec.ts
+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-misc.cy.spec.ts
@@ -200,7 +200,13 @@ describe("pivot tables", () => {
QSHelpers.getFilter("Number").click();
verifyNumberMappingOptions();
- cy.button("Save").click();
+ // This test only inspects parameter mapping options without changing any
+ // mappings, so saving issues no dashboard PUT. Use awaitRequest: false so we
+ // deterministically exit to view mode (edit bar gone) without waiting on a
+ // saveDashboardCards request that never fires — while still guaranteeing the
+ // subsequent legend-caption drill lands in view mode, where it triggers the
+ // pivot query.
+ H.saveDashboard({ awaitRequest: false });
cy.log("filter picker");