Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix custom column isNull e2e test (#63685)

Fraser6afe00b9f1cf
diff --git a/e2e/test/scenarios/custom-column/custom-column.cy.spec.js b/e2e/test/scenarios/custom-column/custom-column.cy.spec.js
index 5b638824057..0456febcad6 100644
--- a/e2e/test/scenarios/custom-column/custom-column.cy.spec.js
+++ b/e2e/test/scenarios/custom-column/custom-column.cy.spec.js
@@ -565,29 +565,22 @@ describe("scenarios > question > custom column", () => {
H.CustomExpressionEditor.value().should("equal", "Sum([MyCC \\[2027\\]])");
});
- it(
- "should work with `isNull` function (metabase#15922)",
- { tags: "@skip" },
- () => {
- H.openOrdersTable({ mode: "notebook" });
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("Custom column").click();
- H.enterCustomColumnDetails({
- formula: "isnull([Discount])",
- name: "No discount",
- });
- cy.button("Done").click();
+ it("should work with `isNull` function (metabase#15922)", () => {
+ H.openOrdersTable({ mode: "notebook" });
+ H.getNotebookStep("data").button("Custom column").click();
+ H.enterCustomColumnDetails({
+ formula: "isnull([Discount])",
+ name: "No discount",
+ });
+ cy.button("Done").click();
- H.visualize((response) => {
- expect(response.body.error).to.not.exist;
- });
+ H.visualize((response) => {
+ expect(response.body.error).to.not.exist;
+ });
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.contains("37.65");
- // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
- cy.findByText("No discount");
- },
- );
+ cy.findAllByRole("gridcell").contains("37.65");
+ cy.findAllByTestId("header-cell").contains("No discount");
+ });
it("should be able to add a date range filter to a custom column", () => {
H.visitQuestionAdhoc({