@@ -5299,26 +5299,26 @@ QUnit.module('Accessibility', () => {
52995299 } ) ;
53005300
53015301 QUnit . test ( 'SelectAll checkbox aria-label should reflect selectAllText option on init (T1328637)' , function ( assert ) {
5302- $ ( '#list' ) . dxList ( {
5302+ const instance = $ ( '#list' ) . dxList ( {
53035303 selectionMode : 'all' ,
53045304 showSelectionControls : true ,
53055305 selectAllText : 'custom-select-all' ,
5306- } ) ;
5306+ } ) . dxList ( 'instance' ) ;
53075307
5308- const $selectAllCheckBox = $ ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
5308+ const $selectAllCheckBox = instance . $element ( ) . find ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
53095309
53105310 assert . strictEqual ( $selectAllCheckBox . attr ( 'aria-label' ) , 'custom-select-all' ,
53115311 'checkbox aria-label uses selectAllText' ) ;
53125312 } ) ;
53135313
53145314 QUnit . test ( 'Select all container aria-label should reflect selectAllText option on init (T1328637)' , function ( assert ) {
5315- $ ( '#list' ) . dxList ( {
5315+ const instance = $ ( '#list' ) . dxList ( {
53165316 selectionMode : 'all' ,
53175317 showSelectionControls : true ,
53185318 selectAllText : 'custom-select-all' ,
5319- } ) ;
5319+ } ) . dxList ( 'instance' ) ;
53205320
5321- const $selectAll = $ ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
5321+ const $selectAll = instance . $element ( ) . find ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
53225322
53235323 assert . strictEqual ( $selectAll . attr ( 'aria-label' ) , 'custom-select-all, Not checked' ,
53245324 'container aria-label uses selectAllText' ) ;
@@ -5333,8 +5333,8 @@ QUnit.module('Accessibility', () => {
53335333
53345334 instance . option ( 'selectAllText' , 'custom-select-all' ) ;
53355335
5336- const $selectAll = $ ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
5337- const $selectAllCheckBox = $ ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
5336+ const $selectAll = instance . $element ( ) . find ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
5337+ const $selectAllCheckBox = instance . $element ( ) . find ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
53385338
53395339 assert . strictEqual ( $selectAll . attr ( 'aria-label' ) , 'custom-select-all, Not checked' ,
53405340 'container aria-label updated after runtime change' ) ;
0 commit comments