Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Stabilize data-studio bulk "edit attributes for db" e2e test (#76085)

Nick Fitzpatrick42446b8240dc
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.ts
index 14e9b6e1a55..920d7e0516b 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
@@ -315,7 +315,13 @@ 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"]')