Skip to content

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

GDGT-1620 Flaky workspaces test (#69103)

Kamil Mielnik8ba4132e4228
diff --git a/e2e/test/scenarios/data-studio/workspaces.cy.spec.ts b/e2e/test/scenarios/data-studio/workspaces.cy.spec.ts
index bc414f66411..980f170f6b8 100644
--- a/e2e/test/scenarios/data-studio/workspaces.cy.spec.ts
+++ b/e2e/test/scenarios/data-studio/workspaces.cy.spec.ts
@@ -1699,21 +1699,20 @@ describe("scenarios > data studio > workspaces", () => {
cy.button("Save").click();
});
- // TODO (Kamil 2026-02-02) -- the tooltip assertions are flaky https://linear.app/metabase/issue/GDGT-1620
- // cy.log("Verify Edit transform button is disabled");
- // cy.findByRole("button", { name: /Edit/ }).click();
- // cy.wait("@checkoutWorkspace");
- // H.popover().contains("New workspace").should("be.disabled");
- // H.popover().contains("New workspace").realHover();
- // H.tooltip().should(
- // "contain.text",
- // "Transforms referencing other questions cannot be edited in a workspace.",
- // );
- // cy.log("Close tooltip");
- // cy.get("body").click();
+ cy.log("Verify edit transform in a workspace button is disabled");
+ cy.findByRole("button", { name: /Edit/ }).click();
+ cy.wait("@checkoutWorkspace");
+ H.popover()
+ .findByRole("menuitem", { name: /New workspace/ })
+ .should("be.disabled")
+ .trigger("mouseenter", { force: true }); // in CI realHover() does not work with disabled elements
+ H.tooltip().should(
+ "contain.text",
+ "Transforms referencing other questions cannot be edited in a workspace.",
+ );
cy.log("Edit transform to remove model reference");
- Transforms.clickEditDefinition();
+ H.popover().findByText("Edit definition").click();
H.NativeEditor.type(
'{selectall}SELECT * FROM "Schema A"."Animals" as t;',
);
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/workspaces/pages/WorkspacePage/WorkspacePage.tsx b/enterprise/frontend/src/metabase-enterprise/data-studio/workspaces/pages/WorkspacePage/WorkspacePage.tsx
index 005c63f93df..0091c8dbe5a 100644
--- a/enterprise/frontend/src/metabase-enterprise/data-studio/workspaces/pages/WorkspacePage/WorkspacePage.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/workspaces/pages/WorkspacePage/WorkspacePage.tsx
@@ -101,7 +101,7 @@ function WorkspacePageContent({
const { tab, setTab, ref: tabsListRef } = useWorkspaceUiTabs();
- const workspaceId = Number(params.workspaceId);
+ const workspaceId = parseInt(params.workspaceId, 10);
// Data fetching
const {