diff --git a/tests/new-range.spec.tsx b/tests/new-range.spec.tsx index 97427cf69..41397ae44 100644 --- a/tests/new-range.spec.tsx +++ b/tests/new-range.spec.tsx @@ -1098,7 +1098,7 @@ describe('NewPicker.Range', () => { it('pass tabIndex', () => { const { container } = render(
- +
, ); @@ -1255,6 +1255,13 @@ describe('NewPicker.Range', () => { }); expect(onChange).toHaveBeenCalled(); }); + + it('should disabled super prev correctly', () => { + render(); + + // Expect super prev disabled + expect(document.querySelector('.rc-picker-header-super-prev-btn-disabled')).toBeDisabled(); + }); }); it('double click now button', () => {