Skip to content

Commit 6ab0c9a

Browse files
author
Sassoun Derderian
committed
test: fix freeze column test that dispatch pointer events
1 parent a6a8b49 commit 6ab0c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/test/data-grid.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,12 @@ describe("data-grid", () => {
437437
render(<DataGrid {...basicPropsWithMoreColumns} freezeColumns={[1, 1]} cellXOffset={3} onMouseUp={spy} />);
438438

439439

440-
fireEvent.mouseDown(screen.getByTestId(dataGridCanvasId), {
440+
fireEvent.pointerDown(screen.getByTestId(dataGridCanvasId), {
441441
clientX: 950, // Col A
442442
clientY: 36 + 32 * 5 + 16, // Row 5 (0 indexed)
443443
});
444444

445-
fireEvent.mouseUp(screen.getByTestId(dataGridCanvasId), {
445+
fireEvent.pointerUp(screen.getByTestId(dataGridCanvasId), {
446446
clientX: 950, // Col A
447447
clientY: 36 + 32 * 5 + 16, // Row 5 (0 indexed)
448448
});

0 commit comments

Comments
 (0)