Skip to content

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

Gate embedding-hub sandbox column-update test on stepper settling (#80808)

Sébastienbd7048574b2c
diff --git a/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts b/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
index 4b5f2d22e4f..76ffb00536e 100644
--- a/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
+++ b/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
@@ -1188,11 +1188,23 @@ describe("scenarios - embedding hub", () => {
})
.should("have.attr", "data-completed", "true");
- cy.log("open the data segregation strategy step");
+ // The seeded sandbox marks the later steps done, so the stepper
+ // auto-advances to "Create tenants" — clicking before it settles misses.
+ cy.log("wait for the stepper to settle on the first incomplete step");
H.main()
- .findByText("Which data segregation strategy does your database use?")
- .scrollIntoView()
- .click();
+ .findByRole("listitem", { name: "Create tenants", timeout: 10_000 })
+ .should("have.attr", "data-active", "true");
+
+ const dataSegregationStep = () =>
+ H.main().findByRole("listitem", {
+ name: /Which data segregation strategy/,
+ });
+
+ cy.log("open the data segregation strategy step");
+ dataSegregationStep().scrollIntoView().click();
+
+ cy.log("the strategy picker should be expanded");
+ dataSegregationStep().should("have.attr", "data-active", "true");
cy.log("select row and column level security strategy");
H.main()