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
Deflake SDK question data-picker target-collection test (#78105)
github-automation-metabase9139563930f7
diff --git a/e2e/test-component/scenarios/embedding-sdk/sdk-question.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/sdk-question.cy.spec.tsxindex f05bb446689..3466b7ebd27 100644--- a/e2e/test-component/scenarios/embedding-sdk/sdk-question.cy.spec.tsx+++ b/e2e/test-component/scenarios/embedding-sdk/sdk-question.cy.spec.tsx@@ -672,22 +672,23 @@ describe("scenarios > embedding-sdk > interactive-question", () => {mountSdkContent(<TestComponent />);getSdkRoot().within(() => {- cy.findByText(`id = ${FIRST_COLLECTION_ENTITY_ID}`).should("exist");+ cy.findByText(`id = ${FIRST_COLLECTION_ENTITY_ID}`).should("be.visible");cy.log("click on the button to switch target collection");cy.findByText("use second collection").click();- cy.findByText(`id = ${SECOND_COLLECTION_ENTITY_ID}`).should("exist");+ cy.findByText(`id = ${SECOND_COLLECTION_ENTITY_ID}`).should("be.visible");});- cy.log("close any existing open popovers to reduce flakes");- cy.get("body").type("{esc}");-getSdkRoot().within(() => {- cy.log("open the data picker");- cy.findByText("Pick your starting data").click();+ cy.log(+ "the data picker auto-opens after the target-collection re-render because no source table is selected; interact with the already-open popover directly instead of toggling it, which races the async auto-open",+ );+ H.popover()+ .findByRole("link", { name: "Orders" })+ .should("be.visible")+ .click();cy.log("ensure that the interactive question still works");- H.popover().findByRole("link", { name: "Orders" }).click();cy.findByRole("button", { name: "Visualize" }).should("be.visible");});});