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

Repro for #13235: Filter with remapped values [ci skip] (#13667)

* Add repro for #13235 [ci skip]
(Cannot filter by selecting remapped display value from dropdown list)
parent 7a7ddbe6
No related branches found
No related tags found
No related merge requests found
import {
signInAsAdmin,
restore,
openOrdersTable,
openProductsTable,
popover,
withSampleDataset,
......@@ -159,4 +160,35 @@ describe("scenarios > question > filter", () => {
});
});
});
it.skip("should filter based on remapped values (metabase#13235)", () => {
withSampleDataset(({ ORDERS, PRODUCTS }) => {
// set "Filtering on this field" = "A list of all values"
cy.request("PUT", `/api/field/${ORDERS.PRODUCT_ID}`, {
has_field_values: "list",
});
// "Display values" = "Use foreign key" as `Product.Title`
cy.request("POST", `/api/field/${ORDERS.PRODUCT_ID}/dimension`, {
name: "Product ID",
type: "external",
human_readable_field_id: PRODUCTS.TITLE,
});
// Add filter as remapped Product ID (Product name)
openOrdersTable();
cy.findByText("Filter").click();
cy.get(".List-item-title")
.contains("Product ID")
.click();
cy.get(".scroll-y")
.contains("Aerodynamic Linen Coat")
.click();
cy.findByText("Add filter").click();
cy.log("**Reported failing on v0.36.4 and v0.36.5.1**");
cy.get(".LoadingSpinner").should("not.exist");
cy.findAllByText("148.23"); // one of the subtotals for this product
cy.findAllByText("Fantastic Wool Shirt").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