The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Fixed flaky custom elements api <metabase-question> test (#71500)
Sébastien3dd99b649431
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding/custom-elements-api.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding/custom-elements-api.cy.spec.tsindex 88db18ea669..090b40a34f5 100644--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding/custom-elements-api.cy.spec.ts+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding/custom-elements-api.cy.spec.ts@@ -302,11 +302,19 @@ describe("scenarios > embedding > sdk iframe embedding > custom elements api", (<metabase-question question-id="${questionId}" drills />`);+ cy.wait("@getCardQuery");++ // Wait for the table to finish rendering before interacting,+ // as column auto-sizing can cause re-renders that detach elements.+ H.getSimpleEmbedIframeContent()+ .findByTestId("table-root")+ .should("have.attr", "data-rows-count", "5");+H.getSimpleEmbedIframeContent().findAllByText("37.65").first().should("be.visible")- .click();+ .click({ force: true });H.getSimpleEmbedIframeContent().findByText(/Filter by this value/).should("be.visible");