Skip to content

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

Closes EMB-1021 flaky test e2e tests metabase browser read only mode (#65851)

Sébastien425856f92a78
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
index d23bfc77ece..24811b311d0 100644
--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
@@ -34,6 +34,10 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
.click();
cy.log("should show question view");
+ cy.get("iframe[data-metabase-embed]").should(($iframe) => {
+ const body = $iframe.contents().find("body");
+ expect(body).to.exist;
+ });
H.getSimpleEmbedIframeContent()
.findByTestId("query-visualization-root")
.should("be.visible");