diff --git a/frontend/test/metabase/scenarios/filters/reproductions/27123-exclude-always-shows-days-of-week.cy.spec.js b/frontend/test/metabase/scenarios/filters/reproductions/27123-exclude-always-shows-days-of-week.cy.spec.js new file mode 100644 index 0000000000000000000000000000000000000000..cfe0be090284addc32377b8e28e7345176f3f036 --- /dev/null +++ b/frontend/test/metabase/scenarios/filters/reproductions/27123-exclude-always-shows-days-of-week.cy.spec.js @@ -0,0 +1,31 @@ +import { restore, popover } from "__support__/e2e/helpers"; +import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database"; + +const { ORDERS_ID } = SAMPLE_DATABASE; + +const questionDetails = { + query: { + "source-table": ORDERS_ID, + limit: 100, + }, +}; + +describe.skip("issue 27123", () => { + beforeEach(() => { + restore(); + cy.signInAsAdmin(); + + cy.createQuestion(questionDetails, { visitQuestion: true }); + }); + + it("exclude filter should not resolve to 'Days of the week' regardless of the chosen granularity (metabase#27123)", () => { + cy.findAllByTestId("header-cell").contains("Created At").click(); + cy.findByText("Filter by this column").click(); + cy.findByText("Exclude...").click(); + cy.findByText("Months of the year...").click(); + + popover() + .should("contain", "Months of the year...") + .and("contain", "January"); + }); +});