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
Fix flaky item Actions menu clicks in notebook-data-source spec (#84678)
Rodrigo López Dato616a8f429f14
diff --git a/e2e/test/scenarios/question/notebook-data-source.cy.spec.ts b/e2e/test/scenarios/question/notebook-data-source.cy.spec.tsindex 3e22a460194..e6d3c406c5b 100644--- a/e2e/test/scenarios/question/notebook-data-source.cy.spec.ts+++ b/e2e/test/scenarios/question/notebook-data-source.cy.spec.ts@@ -477,7 +477,11 @@ describe("issue 32252", () => {cy.findByTestId("sidebar-toggle").click();H.navigationSidebar().findByText("Our analytics").click();- cy.findAllByRole("button", { name: "Actions" }).eq(0).click();+ // The items table renders with zero rows while the items query is in flight, so+ // the row's Actions button mounts late. Anchor on the row before opening its menu,+ // otherwise the click lands on a freshly mounted Mantine Menu target and is dropped.+ H.getUnpinnedSection().findByText("My collection").should("be.visible");+ H.openUnpinnedItemMenu("My collection");H.popover().findByText("Move to trash").click();cy.findByTestId("toast-undo").findByText("Trashed collection")@@ -509,7 +513,8 @@ describe("issue 32252", () => {cy.findAllByTestId("collection-entry-name").findByText("My collection").click();- cy.button("Actions").click();+ H.getUnpinnedSection().findByText("My question").should("be.visible");+ H.openUnpinnedItemMenu("My question");H.popover().findByText("Move to trash").click();cy.findByTestId("toast-undo").findByText("Trashed question")