Skip to content

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

Fix skipped time series binning e2e test (#63428)

Frasera32eeb88a29d
diff --git a/e2e/test/scenarios/binning/binning-options.cy.spec.js b/e2e/test/scenarios/binning/binning-options.cy.spec.js
index 04b30ff502d..f186e82782e 100644
--- a/e2e/test/scenarios/binning/binning-options.cy.spec.js
+++ b/e2e/test/scenarios/binning/binning-options.cy.spec.js
@@ -195,25 +195,18 @@ describe("scenarios > binning > binning options", () => {
});
context("via time series footer (metabase#11183)", () => {
- // TODO: enable again when metabase#35546 is completed
- it(
- "should render time series binning options correctly",
- { tags: "@skip" },
- () => {
- H.openTable({ table: ORDERS_ID });
-
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("Created At").click();
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("Distribution").click();
-
- getTitle("Count by Created At: Month");
-
- // Check all binning options from the footer
- cy.findAllByTestId("select-button-content").contains("Month").click();
- getAllOptions({ options: TIME_BUCKETS, isSelected: "Month" });
- },
- );
+ it("should render time series binning options correctly", () => {
+ H.openTable({ table: ORDERS_ID });
+ H.tableHeaderClick("Created At");
+ H.popover().findByText("Distribution").click();
+ getTitle("Count by Created At: Month");
+ cy.findByTestId("timeseries-bucket-button").click();
+ H.popover().within(() => {
+ cy.findByText("Month")
+ .parent()
+ .should("have.attr", "aria-selected", "true");
+ });
+ });
});
context("implicit joins (metabase#16674)", { tags: "@skip" }, () => {