Skip to content
Snippets Groups Projects
Unverified Commit 4e1d4060 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Repro #20551: Filter dropdown only allows filtering on "starts with" (#20581)

parent 8d2f0740
No related branches found
No related tags found
No related merge requests found
import { restore, openProductsTable, filter } from "__support__/e2e/cypress";
describe("issue 20551", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
});
it("should allow filtering with includes, rather than starts with (metabase#20551)", () => {
openProductsTable({ mode: "notebook" });
filter({ mode: "notebook" });
cy.findByText("Category").click();
// Make sure input field is auto-focused
cy.focused()
.should("have.attr", "placeholder", "Search the list")
.type("i");
// All categories that contain `i`
cy.findByText("Doohickey");
cy.findByText("Gizmo");
cy.findByText("Widget");
cy.findByText("Gadget").should("not.exist");
});
});
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