Skip to content

Commit

Permalink
test(DateRangeInput): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
EldarMuhamethanov committed Nov 5, 2024
1 parent 3e7dcff commit 792f12d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('DateRangeInput', () => {
expect(onCalendarOpenChanged.mock.calls[0][0]).toBeTruthy();

expect(container.contains(document.activeElement)).toBeTruthy();
await userEvent.click(screen.getAllByText('15')[0]);
await userEvent.click(screen.getAllByText('15')[1]);

expect(onCalendarOpenChanged).toHaveBeenCalledTimes(2);
expect(onCalendarOpenChanged.mock.calls[1][0]).toBeFalsy();
Expand Down

0 comments on commit 792f12d

Please sign in to comment.