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

#15695 Repro: Dashboard filters only search the first 100 values (#15703)

parent 47bb5f2d
Branches
Tags
No related merge requests found
......@@ -836,6 +836,63 @@ describe("scenarios > dashboard", () => {
.closest("li")
.contains("CA");
});
it.skip("dashboard filters should not limit the number of search results (metabase#15695)", () => {
// Change filtering on this field to "a list of all values"
cy.request("PUT", `/api/field/${PRODUCTS.TITLE}`, {
has_field_values: "list",
});
cy.createQuestion({
name: "15695",
query: { "source-table": PRODUCTS_ID },
}).then(({ body: { id: QUESTION_ID } }) => {
cy.createDashboard("15695D").then(({ body: { id: DASHBOARD_ID } }) => {
// Add filter to the dashboard
cy.request("PUT", `/api/dashboard/${DASHBOARD_ID}`, {
parameters: [
{
name: "Text",
slug: "text",
id: "de9f36f0",
type: "string/=",
sectionId: "string",
},
],
});
// Add card to the dashboard
cy.request("POST", `/api/dashboard/${DASHBOARD_ID}/cards`, {
cardId: QUESTION_ID,
}).then(({ body: { id: DASH_CARD_ID } }) => {
// Connect filter to the card
cy.request("PUT", `/api/dashboard/${DASHBOARD_ID}/cards`, {
cards: [
{
id: DASH_CARD_ID,
card_id: QUESTION_ID,
row: 0,
col: 0,
sizeX: 12,
sizeY: 9,
visualization_settings: {},
parameter_mappings: [
{
parameter_id: "de9f36f0",
card_id: QUESTION_ID,
target: ["dimension", ["field", PRODUCTS.TITLE, null]],
},
],
},
],
});
});
cy.visit(`/dashboard/${DASHBOARD_ID}`);
});
});
cy.get("fieldset").click();
cy.findByPlaceholderText("Search the list").type("Syner");
cy.findByText("Synergistic Wool Coat");
});
});
function checkOptionsForFilter(filter) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment