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 data-studio bulk "edit attributes for db" e2e test (#76407)
github-automation-metabasefb78326577de
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 fb720a89af3..da554728e20 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@@ -324,6 +324,13 @@ describe("bulk table operations", { viewportWidth: 1600 }, () => {H.createLibrary();cy.signInAsAdmin();H.DataModel.visitDataStudio();++ cy.log(+ "Expand the rows up front - we'll need them later for the assertion",+ );+ TablePicker.getDatabase("Writable Postgres12").should("be.visible").click();+ cy.wait("@getSchema");+TablePicker.getDatabase("Writable Postgres12").find('input[type="checkbox"]').check();@@ -344,16 +351,9 @@ describe("bulk table operations", { viewportWidth: 1600 }, () => {H.modal().findByText("Publish these tables").click();cy.wait("@publishTables");- // While the database is selected the row click only toggles its expansion, which- // races the post-publish re-render and can collapse it. Deselect, then expand.- TablePicker.getDatabase("Writable Postgres12")- .find('input[type="checkbox"]')- .uncheck();- TablePicker.getDatabase("Writable Postgres12").click();- cy.wait("@getSchema");-cy.findAllByTestId("tree-item").filter('[data-type="table"]')+ .should("have.length.greaterThan", 0).each((table) => {cy.wrap(table).findByTestId("table-owner")