From 809731457c5c285a62ecbf964197ff3a8360c209 Mon Sep 17 00:00:00 2001 From: Alyar <> Date: Wed, 11 Sep 2024 12:16:54 +0400 Subject: [PATCH] Fix testcafe tests --- packages/testcafe-models/dataGrid/index.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/testcafe-models/dataGrid/index.ts b/packages/testcafe-models/dataGrid/index.ts index 71b3956b47a6..73ff116ff616 100644 --- a/packages/testcafe-models/dataGrid/index.ts +++ b/packages/testcafe-models/dataGrid/index.ts @@ -107,10 +107,20 @@ const moveElement = ($element: JQuery, x: number, y: number, isStart = false): v if (offset) { if (isStart) { - triggerPointerDown($element, offset.left, offset.top); + $element + .trigger($.Event('dxpointerdown', { + pageX: offset.left, + pageY: offset.top, + pointers: [{ pointerId: 1 }], + })); } - triggerPointerMove($element, offset.left + x, offset.top + y); + $element + .trigger($.Event('dxpointermove', { + pageX: offset.left + x, + pageY: offset.top + y, + pointers: [{ pointerId: 1 }], + })); } } };