Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Dec 8, 2023
1 parent 8ab60e7 commit e64abbc
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions packages/core/test/data-editor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3679,35 +3679,6 @@ a new line char ""more quotes"" plus a tab ." https://google.com`)
expect(spy).toHaveBeenCalled();
});

test("Minimap issues scroll", async () => {
const spy = vi.fn();
vi.useFakeTimers();
render(<EventedDataEditor {...basicProps} rowMarkers="both" showMinimap={true} onGridSelectionChange={spy} />, {
wrapper: Context,
});
prep();

const minimap = screen.getByTestId("minimap-container");

fireEvent.mouseDown(minimap, {
clientX: 940,
clientY: 940,
});

fireEvent.mouseMove(minimap, {
buttons: 1,
clientX: 941,
clientY: 941,
});

fireEvent.mouseUp(minimap, {
clientX: 940,
clientY: 940,
});

expect(Element.prototype.scrollTo).toBeCalled();
});

test("Click cell does not double-emit selectedrows/columns", async () => {
const gridSelectionSpy = vi.fn();
vi.useFakeTimers();
Expand Down

0 comments on commit e64abbc

Please sign in to comment.