Skip to content

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

Fix model metadata e2e flake (#67522)

Nemanja Glumac8ee6859b19e5
diff --git a/e2e/test/scenarios/models/reproductions.cy.spec.ts b/e2e/test/scenarios/models/reproductions.cy.spec.ts
index 1f0ee1d94fc..520c8dd9850 100644
--- a/e2e/test/scenarios/models/reproductions.cy.spec.ts
+++ b/e2e/test/scenarios/models/reproductions.cy.spec.ts
@@ -120,9 +120,10 @@ describe("issue 35711", () => {
function reorderTaxAndTotalColumns() {
cy.findAllByTestId("header-cell").eq(4).should("have.text", "Tax");
cy.findAllByTestId("header-cell").eq(5).should("have.text", "Total");
+ H.tableHeaderColumn("Total").as("totalColumn");
// drag & drop the Total column 80 px to the left to switch it with Tax column
- H.moveDnDKitElement(H.tableHeaderColumn("Total"), { horizontal: -80 });
+ H.moveDnDKitElementByAlias("@totalColumn", { horizontal: -80 });
cy.findAllByTestId("header-cell").eq(4).should("have.text", "Total");
cy.findAllByTestId("header-cell").eq(5).should("have.text", "Tax");