Skip to content
Snippets Groups Projects
Unverified Commit b4d8ae8a authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Remove duplicate reproductions for #22230 (#29608)

parent dc517a25
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ const questionDetails = {
},
};
describe.skip("issue 22230", () => {
describe("issue 22230", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
......@@ -34,11 +34,15 @@ describe.skip("issue 22230", () => {
it("should be able to filter on an aggregation (metabase#22230)", () => {
cy.findByText("Filter").click();
popover().contains("Max of Name").click();
cy.findByTestId("select-button").click();
cy.findByRole("option", { name: "Starts with" }).click();
cy.findByPlaceholderText("Enter some text").type("Zora").blur();
cy.findByPlaceholderText("Enter some text").type("Zo").blur();
cy.button("Add filter").click();
visualize();
cy.findByText("Zora Schamberger");
cy.findByText("Showing 2 rows").should("be.visible");
cy.findByText("Zora Schamberger").should("be.visible");
cy.findByText("Zoie Kozey").should("be.visible");
});
});
import {
restore,
popover,
summarize,
openPeopleTable,
visualize,
} from "e2e/support/helpers";
describe("issue 22230", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
});
it("should allow filtering on aggregated fields", () => {
openPeopleTable({ mode: "notebook" });
summarize({ mode: "notebook" });
popover().findByRole("option", { name: "Maximum of ..." }).click();
popover().findByRole("option", { name: "Name" }).click();
cy.findByText("Pick a column to group by").click();
popover().findByRole("option", { name: "Source" }).click();
cy.button("Filter").click();
popover().findByRole("option", { name: "Max of Name" }).click();
cy.findByTestId("select-button").click();
cy.findByRole("option", { name: "Starts with" }).click();
popover().findByPlaceholderText("Enter some text").type("Zo");
popover().button("Add filter").click();
visualize();
cy.findByText("Showing 2 rows").should("be.visible");
cy.findByText("Zora Schamberger").should("be.visible");
cy.findByText("Zoie Kozey").should("be.visible");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment