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 terms acceptance in sdk iframe embed setup wizard (#80826)

Sébastien698fd4f1eee8
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/helpers/index.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/helpers/index.ts
index b0f78d9ba36..97ea7a5bc6b 100644
--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/helpers/index.ts
+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/helpers/index.ts
@@ -39,9 +39,11 @@ export const visitNewEmbedPage = (
cy.get("body").then(() => {
if (waitForResource) {
- embedModalEnableEmbedding();
+ // Accept the terms only once the sidebar has settled: a click landing
+ // mid-re-render is dropped silently and blocks the wizard (EMB-2307).
+ cy.wait("@dashboard", { timeout: 20_000 });
- cy.wait("@dashboard");
+ embedModalEnableEmbedding();
// Same 40s margin as waitForSimpleEmbedIframesToLoad (metabase#66954).
cy.get("[data-iframe-loaded]", { timeout: 40_000 }).should(