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

Unskip repro for #16273 (#19553)

parent 42ff35d5
No related branches found
No related tags found
No related merge requests found
...@@ -434,18 +434,17 @@ describe("scenarios > question > custom column", () => { ...@@ -434,18 +434,17 @@ describe("scenarios > question > custom column", () => {
cy.findByText("No discount"); cy.findByText("No discount");
}); });
it.skip("should work with relative date filter applied to a custom column (metabase#16273)", () => { it("should work with relative date filter applied to a custom column (metabase#16273)", () => {
openOrdersTable({ mode: "notebook" }); openOrdersTable({ mode: "notebook" });
cy.findByText("Custom column").click(); cy.findByText("Custom column").click();
popover().within(() => {
cy.get("[contenteditable='true']") enterCustomColumnDetails({
.type("case([Discount] >0, [Created At], [Product → Created At])") formula: `case([Discount] > 0, [Created At], [Product → Created At])`,
.blur(); name: "MiscDate",
cy.findByPlaceholderText("Something nice and descriptive").type(
"MiscDate",
);
cy.button("Done").click();
}); });
cy.button("Done").click();
cy.findByText("Filter").click(); cy.findByText("Filter").click();
popover() popover()
.contains("MiscDate") .contains("MiscDate")
...@@ -456,10 +455,11 @@ describe("scenarios > question > custom column", () => { ...@@ -456,10 +455,11 @@ describe("scenarios > question > custom column", () => {
cy.findByText("Years").click(); cy.findByText("Years").click();
cy.button("Add filter").click(); cy.button("Add filter").click();
visualize(response => { visualize(({ body }) => {
expect(response.body.error).to.not.exist; expect(body.error).to.not.exist;
}); });
cy.findByText("MiscDate"); cy.findByText("MiscDate Previous 30 Years"); // Filter name
cy.findByText("MiscDate"); // Column name
}); });
}); });
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