Skip to content

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

Fix flaky transforms collections expand by clicking the Expand control (#76375)

github-automation-metabase984b85591ccd
diff --git a/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts b/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
index 17e62c66c20..9171df5093c 100644
--- a/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
+++ b/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
@@ -2283,8 +2283,14 @@ LIMIT
H.modal().findByRole("button", { name: "Create" }).click();
getTransformsList().within(() => {
- // Expand the collection to see the nested collection
- cy.findByText("Marketing Transforms").click();
+ // The list refetches its collection tree after the create, and the
+ // parent row only renders an "Expand" control once the new child is
+ // present in the refetched tree. Clicking the row name to toggle it is
+ // a no-op until then (the row isn't yet expandable), which left the
+ // nested collection hidden. Wait for the Expand control to appear — its
+ // presence is the deterministic signal the child has landed — and click
+ // that instead; it only ever expands, never toggles a collapse.
+ cy.findByRole("button", { name: "Expand" }).click();
cy.findByText("Q4 Reports").should("be.visible");
});