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: flake test number 29943 (#66283)
Egor Grushin99fa786ec87d
diff --git a/e2e/support/helpers/e2e-ui-elements-helpers.js b/e2e/support/helpers/e2e-ui-elements-helpers.jsindex 0293631813a..d670ec87e4d 100644--- a/e2e/support/helpers/e2e-ui-elements-helpers.js+++ b/e2e/support/helpers/e2e-ui-elements-helpers.js@@ -300,6 +300,10 @@ export const moveColumnDown = (column, distance) => {.trigger("mouseup", 0, distance * 50, { force: true });};+/**+ * @deprecated Use `moveDnDKitElementByAlias` instead.+ * Otherwise, the chain will be broken due to "element was removed from the DOM" error+ */export const moveDnDKitElement = (element,{ horizontal = 0, vertical = 0, onBeforeDragEnd = () => {} } = {},diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.ts b/e2e/test/scenarios/models/reproductions.cy.spec.tsindex a79a22947e6..77bad3c6114 100644--- a/e2e/test/scenarios/models/reproductions.cy.spec.ts+++ b/e2e/test/scenarios/models/reproductions.cy.spec.ts@@ -29,7 +29,9 @@ describe("issue 29943", () => {getHeaderCell(1, "Total").should("exist");getHeaderCell(2, "Custom").should("exist");- H.moveDnDKitElement(H.tableHeaderColumn("Custom"), { horizontal: -100 });+ const tableHeaderAlias = "customHeader";+ H.tableHeaderColumn("Custom").as(tableHeaderAlias);+ H.moveDnDKitElementByAlias(`@${tableHeaderAlias}`, { horizontal: -100 });getHeaderCell(1, "Custom").should("exist");getHeaderCell(2, "Total").should("exist");