Skip to content
Snippets Groups Projects
Unverified Commit 5f968e6b authored by Oleg Gromov's avatar Oleg Gromov Committed by GitHub
Browse files

Fix e2e notebook / "should process the updated expression when pressing Enter" (#37045)

parent 72893a8f
Branches
Tags
No related merge requests found
......@@ -179,7 +179,13 @@ describe("scenarios > question > notebook", { tags: "@slow" }, () => {
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy.findByText("Custom Expression").click();
cy.get("@formula").clear().type("[Price] > 1 AND [Price] < 5{enter}");
cy.get("@formula")
.invoke("val", "") // this is a more reliable .clear()
.type("[Price] > 1 AND [Price] < 5{enter}");
// In case it does exist, it usually is an error in expression (caused by not clearing
// the input properly before typing), and this check helps to highlight that.
cy.findByTestId("expression-editor-textfield").should("not.exist");
getNotebookStep("filter")
.contains("Price is greater than 1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment