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

Add a reproduction for unable to properly filter on an aggregation (#29539)

* Add a reproduction for #22230

* Clean up comments
parent 0d2f9355
No related branches found
No related tags found
No related merge requests found
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