Skip to content

Commit

Permalink
Fix testcafe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyar committed Sep 11, 2024
1 parent 11f59f8 commit 8097314
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/testcafe-models/dataGrid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
}));
}
}
};
Expand Down

0 comments on commit 8097314

Please sign in to comment.