@@ -252,12 +252,12 @@ test('animate classes & inert are not rendered when hasAnimations is false', ()
252252 expect ( screen . getByTestId ( 'test-id' ) ) . not . toHaveClass ( `${ inputGroupStyles . modifiers . expanded } ` ) ;
253253
254254 expect ( screen . getByTestId ( 'test-id' ) . children [ 0 ] ) . not . toHaveClass ( `${ inputGroupStyles . modifiers . searchInput } ` ) ;
255- expect ( screen . getByTestId ( 'test-id' ) . children [ 0 ] ) . not . toHaveAttribute ( 'inert' , '' ) ;
255+ expect ( screen . getByTestId ( 'test-id' ) . children [ 0 ] . parentElement ) . not . toHaveAttribute ( 'inert' , '' ) ;
256256
257257 expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 1 ) ;
258258 expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . not . toHaveClass ( `${ inputGroupStyles . modifiers . searchExpand } ` ) ;
259259 expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . not . toHaveClass ( `${ inputGroupStyles . modifiers . searchAction } ` ) ;
260- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . not . toHaveAttribute ( 'inert' , '' ) ;
260+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . not . toHaveAttribute ( 'inert' , '' ) ;
261261} ) ;
262262
263263test ( 'animate classes & inert are properly rendered when hasAnimations is true and isExpanded is false' , ( ) => {
@@ -283,10 +283,10 @@ test('animate classes & inert are properly rendered when hasAnimations is true a
283283 ) ;
284284 expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 2 ) ;
285285 expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . toHaveClass ( `${ inputGroupStyles . modifiers . searchExpand } ` ) ;
286- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . not . toHaveAttribute ( 'inert' , '' ) ;
286+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . not . toHaveAttribute ( 'inert' , '' ) ;
287287
288288 expect ( screen . getAllByRole ( 'button' ) [ 1 ] . parentElement ) . toHaveClass ( `${ inputGroupStyles . modifiers . searchAction } ` ) ;
289- expect ( screen . getAllByRole ( 'button' ) [ 1 ] ) . toHaveAttribute ( 'inert' , '' ) ;
289+ expect ( screen . getAllByRole ( 'button' ) [ 1 ] . parentElement ) . toHaveAttribute ( 'inert' , '' ) ;
290290} ) ;
291291
292292test ( 'animate classes and inert are properly rendered when hasAnimations and isExpanded are true' , ( ) => {
@@ -312,10 +312,10 @@ test('animate classes and inert are properly rendered when hasAnimations and isE
312312 ) ;
313313 expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 2 ) ;
314314 expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . toHaveClass ( `${ inputGroupStyles . modifiers . searchExpand } ` ) ;
315- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveAttribute ( 'inert' , '' ) ;
315+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] . parentElement ) . toHaveAttribute ( 'inert' , '' ) ;
316316
317317 expect ( screen . getAllByRole ( 'button' ) [ 1 ] . parentElement ) . toHaveClass ( `${ inputGroupStyles . modifiers . searchAction } ` ) ;
318- expect ( screen . getAllByRole ( 'button' ) [ 1 ] ) . not . toHaveAttribute ( 'inert' , '' ) ;
318+ expect ( screen . getAllByRole ( 'button' ) [ 1 ] . parentElement ) . not . toHaveAttribute ( 'inert' , '' ) ;
319319} ) ;
320320
321321test ( 'onToggleExpand is not called if the expandable toggle is not clicked' , ( ) => {
0 commit comments