File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1098,7 +1098,7 @@ describe('NewPicker.Range', () => {
10981098 it ( 'pass tabIndex' , ( ) => {
10991099 const { container } = render (
11001100 < div >
1101- < DayRangePicker tabIndex = { - 1 } />
1101+ < DayRangePicker tabIndex = { - 1 } />
11021102 </ div > ,
11031103 ) ;
11041104
@@ -1255,6 +1255,13 @@ describe('NewPicker.Range', () => {
12551255 } ) ;
12561256 expect ( onChange ) . toHaveBeenCalled ( ) ;
12571257 } ) ;
1258+
1259+ it ( 'should disabled super prev correctly' , ( ) => {
1260+ render ( < DayRangePicker minDate = { dayjs ( ) } picker = "year" open /> ) ;
1261+
1262+ // Expect super prev disabled
1263+ expect ( document . querySelector ( '.rc-picker-header-super-prev-btn-disabled' ) ) . toBeDisabled ( ) ;
1264+ } ) ;
12581265 } ) ;
12591266
12601267 it ( 'double click now button' , ( ) => {
You can’t perform that action at this time.
0 commit comments