Skip to content

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

E2E repro for custom columns in join LHS (#62362)

Alexander Polyankine69e5c958d4e
diff --git a/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js b/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js
index 8fd9f031195..15e3fe58836 100644
--- a/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js
+++ b/e2e/test/scenarios/custom-column/custom-column-reproductions.cy.spec.js
@@ -2308,7 +2308,35 @@ describe("Issue 38498", { tags: "@external" }, () => {
});
});
-describe("Issue 61010", () => {
+describe("issue 52451", () => {
+ beforeEach(() => {
+ H.restore();
+ cy.signInAsNormalUser();
+ });
+
+ it("should be possible to use a custom expression in a join condition from the same stage in the LHS (metabase#52451)", () => {
+ H.openOrdersTable({ mode: "notebook" });
+ H.addCustomColumn();
+ H.enterCustomColumnDetails({
+ name: "Expr",
+ formula: "[ID] * 1000",
+ });
+ H.popover().button("Done").click();
+ H.join();
+ H.entityPickerModal().within(() => {
+ H.entityPickerModalTab("Tables").click();
+ cy.findByText("Reviews").click();
+ });
+ H.popover().findByText("Expr").click();
+ H.popover().findByText("ID").click();
+ H.getNotebookStep("join").findByLabelText("Change join type").click();
+ H.popover().findByText("Inner join").click();
+ H.visualize();
+ H.assertQueryBuilderRowCount(1);
+ });
+});
+
+describe("issue 61010", () => {
const CUSTOM_COLUMN_NAME = "Foo";
const AGGREGATION_NAME = "New count";