Skip to content

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

Fix duplicated identifiers error (#71883)

Timofey Kachalov8c2ca60ccbd0
diff --git a/e2e/support/helpers/e2e-mobile-device-helpers.ts b/e2e/support/helpers/e2e-mobile-device-helpers.ts
index 43c22900960..2eceb8e42b3 100644
--- a/e2e/support/helpers/e2e-mobile-device-helpers.ts
+++ b/e2e/support/helpers/e2e-mobile-device-helpers.ts
@@ -78,47 +78,3 @@ export function quickSwipe(
button: 0,
});
}
-
-export function longPressAndDrag(
- selector: string,
- startX: number,
- startY: number,
- endX: number,
- holdMs = LONG_PRESS_MS,
-) {
- cy.findByTestId(selector).trigger("pointerdown", startX, startY, {
- force: true,
- isPrimary: true,
- button: 0,
- });
-
- cy.wait(holdMs);
-
- cy.findByTestId(selector)
- .trigger("mousemove", endX, startY)
- .trigger("mouseup", endX, startY);
-}
-
-export function quickSwipe(
- selector: string,
- startX: number,
- startY: number,
- endX: number,
-) {
- cy.findByTestId(selector)
- .trigger("pointerdown", startX, startY, {
- force: true,
- isPrimary: true,
- button: 0,
- })
- .trigger("pointermove", endX, startY, {
- force: true,
- isPrimary: true,
- button: 0,
- })
- .trigger("pointerup", endX, startY, {
- force: true,
- isPrimary: true,
- button: 0,
- });
-}