@@ -255,7 +255,7 @@ describe('Table.rowSelection', () => {
255
255
{ sync : false } ,
256
256
) ;
257
257
const div = dropdownWrapper . findAll ( 'li.ant-dropdown-menu-item' ) ;
258
- div . at ( 1 ) . trigger ( 'click' ) ;
258
+ div [ 1 ] . trigger ( 'click' ) ;
259
259
260
260
expect ( handleSelectInvert ) . toBeCalledWith ( [ 1 , 2 , 3 ] ) ;
261
261
} ) ;
@@ -295,7 +295,7 @@ describe('Table.rowSelection', () => {
295
295
dropdownWrapper . findAll ( '.ant-dropdown-menu-item' ) [ 2 ] . trigger ( 'click' ) ;
296
296
expect ( handleSelectOdd ) . toBeCalledWith ( [ 0 , 1 , 2 , 3 ] ) ;
297
297
298
- dropdownWrapper . findAll ( '.ant-dropdown-menu-item' ) . at ( 3 ) . trigger ( 'click' ) ;
298
+ dropdownWrapper . findAll ( '.ant-dropdown-menu-item' ) [ 3 ] . trigger ( 'click' ) ;
299
299
expect ( handleSelectEven ) . toBeCalledWith ( [ 0 , 1 , 2 , 3 ] ) ;
300
300
} ) ;
301
301
@@ -402,7 +402,7 @@ describe('Table.rowSelection', () => {
402
402
) ;
403
403
await sleep ( ) ;
404
404
const pager = wrapper . findAllComponents ( { name : 'Pager' } ) ;
405
- pager . at ( pager . length - 1 ) . trigger ( 'click' ) ; // switch to second page
405
+ pager [ pager . length - 1 ] . trigger ( 'click' ) ; // switch to second page
406
406
wrapper . findAll ( 'input' ) [ 0 ] . element . checked = true ;
407
407
wrapper . findAll ( 'input' ) [ 0 ] . trigger ( 'change' ) ;
408
408
await asyncExpect ( ( ) => {
@@ -458,7 +458,7 @@ describe('Table.rowSelection', () => {
458
458
expect ( wrapper . findAllComponents ( { name : 'ACheckbox' } ) . length ) . toBe ( 5 ) ;
459
459
const allCheckbox = wrapper . findAllComponents ( { name : 'ACheckbox' } ) ;
460
460
Array ( allCheckbox . length ) . forEach ( ( _ , index ) => {
461
- const checkbox = allCheckbox . at ( index ) ;
461
+ const checkbox = allCheckbox [ index ] ;
462
462
expect ( checkbox . vm . checked ) . toBe ( true ) ;
463
463
expect ( checkbox . vm . indeterminate ) . toBe ( false ) ;
464
464
} ) ;
@@ -473,7 +473,7 @@ describe('Table.rowSelection', () => {
473
473
expect ( wrapper . findAllComponents ( { name : 'ACheckbox' } ) . length ) . toBe ( 4 ) ;
474
474
const allCheckbox = wrapper . findAllComponents ( { name : 'ACheckbox' } ) ;
475
475
Array ( allCheckbox . length ) . forEach ( ( _ , index ) => {
476
- const checkbox = allCheckbox . at ( index ) ;
476
+ const checkbox = allCheckbox [ index ] ;
477
477
expect ( checkbox . vm . checked ) . toBe ( true ) ;
478
478
expect ( checkbox . vm . indeterminate ) . toBe ( false ) ;
479
479
} ) ;
@@ -556,8 +556,7 @@ describe('Table.rowSelection', () => {
556
556
indexList . forEach ( index => {
557
557
dropdownWrapper
558
558
. findAll ( '.ant-dropdown-menu-item .ant-checkbox-wrapper' )
559
- . at ( index )
560
- . trigger ( 'click' ) ;
559
+ [ index ] . trigger ( 'click' ) ;
561
560
} ) ;
562
561
dropdownWrapper . find ( '.ant-table-filter-dropdown-btns .ant-btn-primary' ) . trigger ( 'click' ) ;
563
562
}
0 commit comments