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 bulk publish/unpublish e2e test (#76488)
github-automation-metabasef9fbba15e07b
diff --git a/e2e/test/scenarios/data-studio/data-model/data-studio-bulk-table.cy.spec.ts b/e2e/test/scenarios/data-studio/data-model/data-studio-bulk-table.cy.spec.tsindex 2cfbbfaf6f3..d42e78526f1 100644--- a/e2e/test/scenarios/data-studio/data-model/data-studio-bulk-table.cy.spec.ts+++ b/e2e/test/scenarios/data-studio/data-model/data-studio-bulk-table.cy.spec.ts@@ -124,9 +124,20 @@ describe("bulk table operations", { viewportWidth: 1600 }, () => {H.DataModel.visitDataStudio();cy.log("select multiple tables");- TablePicker.getDatabase("Writable Postgres12").click();- // wait for the database's tables to load before selecting them+ // The picker tree keeps mounting after the databases request resolves, so+ // clicking the database row before its expand handler is wired drops the click+ // and the schema fetch that populates the tables never fires. Wait for the+ // expand toggle to render collapsed, click it, then confirm it expanded so the+ // schema request reliably occurs before we select the tables.+ TablePicker.getDatabaseToggle("Writable Postgres12")+ .should("have.attr", "aria-expanded", "false")+ .click();cy.wait("@getSchema");+ TablePicker.getDatabaseToggle("Writable Postgres12").should(+ "have.attr",+ "aria-expanded",+ "true",+ );TablePicker.getTable("Orders").findByRole("checkbox").check();TablePicker.getTable("Products").findByRole("checkbox").check();TablePicker.getTable("Reviews").findByRole("checkbox").check();