@@ -5297,4 +5297,49 @@ QUnit.module('Accessibility', () => {
52975297 $groupHeader . trigger ( 'dxclick' ) ;
52985298 assert . strictEqual ( $groupHeader . attr ( 'aria-expanded' ) , 'true' , 'aria-expanded is changed' ) ;
52995299 } ) ;
5300+
5301+ QUnit . test ( 'SelectAll checkbox aria-label should reflect selectAllText option on init (T1328637)' , function ( assert ) {
5302+ $ ( '#list' ) . dxList ( {
5303+ selectionMode : 'all' ,
5304+ showSelectionControls : true ,
5305+ selectAllText : 'custom-select-all' ,
5306+ } ) ;
5307+
5308+ const $selectAllCheckBox = $ ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
5309+
5310+ assert . strictEqual ( $selectAllCheckBox . attr ( 'aria-label' ) , 'custom-select-all' ,
5311+ 'checkbox aria-label uses selectAllText' ) ;
5312+ } ) ;
5313+
5314+ QUnit . test ( 'Select all container aria-label should reflect selectAllText option on init (T1328637)' , function ( assert ) {
5315+ $ ( '#list' ) . dxList ( {
5316+ selectionMode : 'all' ,
5317+ showSelectionControls : true ,
5318+ selectAllText : 'custom-select-all' ,
5319+ } ) ;
5320+
5321+ const $selectAll = $ ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
5322+
5323+ assert . strictEqual ( $selectAll . attr ( 'aria-label' ) , 'custom-select-all, Not checked' ,
5324+ 'container aria-label uses selectAllText' ) ;
5325+ } ) ;
5326+
5327+ QUnit . test ( 'Select all aria-labels should update when selectAllText changes at runtime (T1328637)' , function ( assert ) {
5328+ const instance = $ ( '#list' ) . dxList ( {
5329+ items : [ 'text 1' ] ,
5330+ selectionMode : 'all' ,
5331+ showSelectionControls : true ,
5332+ } ) . dxList ( 'instance' ) ;
5333+
5334+ instance . option ( 'selectAllText' , 'custom-select-all' ) ;
5335+
5336+ const $selectAll = $ ( `.${ LIST_SELECT_ALL_CLASS } ` ) ;
5337+ const $selectAllCheckBox = $ ( `.${ LIST_SELECT_ALL_CHECKBOX_CLASS } ` ) ;
5338+
5339+ assert . strictEqual ( $selectAll . attr ( 'aria-label' ) , 'custom-select-all, Not checked' ,
5340+ 'container aria-label updated after runtime change' ) ;
5341+ assert . strictEqual ( $selectAllCheckBox . attr ( 'aria-label' ) , 'custom-select-all' ,
5342+ 'checkbox aria-label updated after runtime change' ) ;
5343+ } ) ;
5344+
53005345} ) ;
0 commit comments