@@ -631,19 +631,15 @@ describe('Appbar accessibility', () => {
631631 } ) ;
632632
633633 it ( 'forwards custom headline button accessibility props' , async ( ) => {
634- const onAccessibilityAction = jest . fn ( ) ;
635634 await render (
636635 < Appbar
637636 variant = "small"
638637 headline = "Inbox"
639638 onHeadlinePress = { ( ) => { } }
640639 headlinePressableProps = { {
641- accessibilityActions : [ { name : 'activate' , label : 'Open inbox' } ] ,
642640 accessibilityHint : 'Opens the inbox menu' ,
643641 accessibilityLabel : 'Inbox options' ,
644642 accessibilityState : { busy : true , expanded : true } ,
645- accessibilityValue : { text : 'Unread messages available' } ,
646- onAccessibilityAction,
647643 } }
648644 testID = { testIDPrefix }
649645 />
@@ -655,20 +651,7 @@ describe('Appbar accessibility', () => {
655651 expanded : true ,
656652 } ) ;
657653
658- expect ( titleButton ) . toHaveProp (
659- 'accessibilityActions' ,
660- expect . arrayContaining ( [
661- expect . objectContaining ( { name : 'activate' , label : 'Open inbox' } ) ,
662- ] )
663- ) ;
664654 expect ( titleButton ) . toHaveProp ( 'accessibilityHint' , 'Opens the inbox menu' ) ;
665- expect ( titleButton ) . toHaveAccessibilityValue ( {
666- text : 'Unread messages available' ,
667- } ) ;
668- expect ( titleButton ) . toHaveProp (
669- 'onAccessibilityAction' ,
670- onAccessibilityAction
671- ) ;
672655 } ) ;
673656
674657 it ( 'uses default and custom labels for back buttons' , async ( ) => {
0 commit comments