Skip to content
Snippets Groups Projects
Unverified Commit d7c1653f authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Test the argument count feedback on a custom expression (#15020)

parent 99c759a1
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,20 @@ describe("scenarios > question > notebook", () => {
cy.get("[contenteditable='true']").contains("between([ID], 96, 97)");
});
it("should show the correct number of function arguments in a custom expression", () => {
openProductsTable({ mode: "notebook" });
cy.findByText("Filter").click();
cy.findByText("Custom Expression").click();
cy.get("[contenteditable='true']")
.click()
.clear()
.type("contains([Category])", { delay: 50 });
cy.findAllByRole("button", { name: "Done" })
.should("not.be.disabled")
.click();
cy.contains(/^Function contains expects 2 arguments/i);
});
describe("joins", () => {
it("should allow joins", () => {
// start a custom question with orders
......
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