File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
8080 variant = { isPrimaryAction ? 'primary' : 'secondary' }
8181 type = 'ghost'
8282 size = 'sm'
83+ testID = { `${ action . value } -action-button` }
8384 onPress = { ( ) => {
8485 if ( action ?. name && action ?. value && handleAction ) {
8586 handleAction ( action . name , action . value ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ describe('MessageUserReactions when the supportedReactions are defined', () => {
8787
8888 it ( 'renders reaction buttons' , ( ) => {
8989 const { getByLabelText } = renderComponent ( ) ;
90- const likeReactionButton = getByLabelText ( 'reaction-button-like-selected ' ) ;
90+ const likeReactionButton = getByLabelText ( 'reaction-button-like-unselected ' ) ;
9191 expect ( likeReactionButton ) . toBeDefined ( ) ;
9292 const loveReactionButton = getByLabelText ( 'reaction-button-love-unselected' ) ;
9393 expect ( loveReactionButton ) . toBeDefined ( ) ;
You can’t perform that action at this time.
0 commit comments