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

Add repro for #15714 (#15722)

parent e01bebc1
No related branches found
No related tags found
No related merge requests found
......@@ -75,4 +75,24 @@ describe("postgres > question > custom columns", () => {
cy.contains(ESCAPED_REGEX);
});
});
it.skip("`Percentile` custom expression function should accept two parameters (metabase#15714)", () => {
cy.visit("/question/new");
cy.findByText("Custom question").click();
cy.findByText(PG_DB_NAME).click();
cy.findByText("Orders").click();
cy.icon("add_data").click();
cy.get("[contenteditable='true']")
.click()
.type("Percentile([Subtotal], 0.1)");
cy.findByPlaceholderText("Something nice and descriptive")
.as("description")
.click();
cy.findByText("Function Percentile expects 1 argument").should("not.exist");
cy.get("@description").type("A");
cy.findByRole("button", { name: "Done" })
.should("not.be.disabled")
.click();
// Todo: Add positive assertions once this is fixed
});
});
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