Skip to content

Commit

Permalink
#14880 Repro: Negative filter can not be converted to custom expressi…
Browse files Browse the repository at this point in the history
…on [ci skip] (#14885)
  • Loading branch information
nemanjaglumac authored and ariya committed Mar 1, 2021
1 parent b22259f commit 5c11c5e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions frontend/test/metabase/scenarios/question/filter.cy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,4 +859,28 @@ describe("scenarios > question > filter", () => {
cy.findByText("Done").click();
cy.contains("Showing 1,112 rows");
});

it.skip("shuld convert negative filter to custom expression (metabase#14880)", () => {
visitQuestionAdhoc({
dataset_query: {
type: "query",
query: {
"source-table": PRODUCTS_ID,
filter: [
"does-not-contain",
["field-id", PRODUCTS.TITLE],
"Wallet",
{ "case-sensitive": false },
],
},
database: 1,
},
display: "table",
});
cy.findByText("Title does not contain Wallet").click();
cy.get(".Icon-chevronleft").click();
cy.findByText("Custom Expression").click();
// Before we implement this feature, we can only assert that the input field for custom expression doesn't show at all
cy.get("[contenteditable='true']");
});
});

0 comments on commit 5c11c5e

Please sign in to comment.