Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 13, 2024
1 parent 295d4db commit 6b27e5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/new-range.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ describe('NewPicker.Range', () => {
it('pass tabIndex', () => {
const { container } = render(
<div>
<DayRangePicker tabIndex={-1}/>
<DayRangePicker tabIndex={-1} />
</div>,
);

Expand Down Expand Up @@ -1255,6 +1255,13 @@ describe('NewPicker.Range', () => {
});
expect(onChange).toHaveBeenCalled();
});

it('should disabled super prev correctly', () => {
render(<DayRangePicker minDate={dayjs()} picker="year" open />);

// Expect super prev disabled
expect(document.querySelector('.rc-picker-header-super-prev-btn-disabled')).toBeDisabled();
});
});

it('double click now button', () => {
Expand Down

0 comments on commit 6b27e5f

Please sign in to comment.