@@ -173,10 +173,6 @@ describe('accessibility', () => {
173173 } ) ;
174174
175175 describe ( 'row details not in use' , ( ) => {
176- it ( 'should not have aria-expanded on body cells' , ( ) => {
177- expect ( uniqueAttrValues ( grid . $ . items . querySelectorAll ( 'td' ) , 'aria-expanded' ) ) . to . eql ( [ null ] ) ;
178- } ) ;
179-
180176 it ( 'should not have aria-controls on body cells' , ( ) => {
181177 expect ( uniqueAttrValues ( grid . $ . items . querySelectorAll ( 'td' ) , 'aria-controls' ) ) . to . eql ( [ null ] ) ;
182178 } ) ;
@@ -259,10 +255,6 @@ describe('accessibility', () => {
259255 } ) ;
260256
261257 describe ( 'row details in use' , ( ) => {
262- it ( 'should have aria-expanded false on body cells' , ( ) => {
263- expect ( uniqueAttrValues ( grid . $ . items . querySelectorAll ( 'td' ) , 'aria-expanded' ) ) . to . eql ( [ 'false' ] ) ;
264- } ) ;
265-
266258 it ( 'should have aria-controls referencing detail cell id on body cells' , ( ) => {
267259 Array . from ( grid . $ . items . children ) . forEach ( ( row ) => {
268260 const detailsCell = row . querySelector ( 'td[part~="details-cell"]' ) ;
@@ -274,23 +266,6 @@ describe('accessibility', () => {
274266 ] ) ;
275267 } ) ;
276268 } ) ;
277-
278- it ( 'should set aria-expanded true on cells after row details opened' , ( ) => {
279- grid . openItemDetails ( grid . items [ 0 ] ) ;
280-
281- expect ( uniqueAttrValues ( grid . $ . items . children [ 0 ] . children , 'aria-expanded' ) ) . to . eql ( [ 'true' ] ) ;
282-
283- expect ( uniqueAttrValues ( grid . $ . items . children [ 1 ] . children , 'aria-expanded' ) ) . to . eql ( [ 'false' ] ) ;
284- } ) ;
285-
286- it ( 'should set aria-expanded false on cells after row details closed' , ( ) => {
287- grid . openItemDetails ( grid . items [ 0 ] ) ;
288- grid . closeItemDetails ( grid . items [ 0 ] ) ;
289-
290- expect ( uniqueAttrValues ( grid . $ . items . children [ 0 ] . children , 'aria-expanded' ) ) . to . eql ( [ 'false' ] ) ;
291-
292- expect ( uniqueAttrValues ( grid . $ . items . children [ 1 ] . children , 'aria-expanded' ) ) . to . eql ( [ 'false' ] ) ;
293- } ) ;
294269 } ) ;
295270 } ) ;
296271
0 commit comments