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 merge requests found
......@@ -434,18 +434,17 @@ describe("scenarios > question > custom column", () => {
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" });
cy.findByText("Custom column").click();
popover().within(() => {
cy.get("[contenteditable='true']")
.type("case([Discount] >0, [Created At], [Product → Created At])")
.blur();
cy.findByPlaceholderText("Something nice and descriptive").type(
"MiscDate",
);
cy.button("Done").click();
enterCustomColumnDetails({
formula: `case([Discount] > 0, [Created At], [Product → Created At])`,
name: "MiscDate",
});
cy.button("Done").click();
cy.findByText("Filter").click();
popover()
.contains("MiscDate")
......@@ -456,10 +455,11 @@ describe("scenarios > question > custom column", () => {
cy.findByText("Years").click();
cy.button("Add filter").click();
visualize(response => {
expect(response.body.error).to.not.exist;
visualize(({ body }) => {
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