diff --git a/src/components/MessageActions/MessageActions.tsx b/src/components/MessageActions/MessageActions.tsx
index 1567a9f99..7ee4145c0 100644
--- a/src/components/MessageActions/MessageActions.tsx
+++ b/src/components/MessageActions/MessageActions.tsx
@@ -128,6 +128,7 @@ export const MessageActions = <
aria-haspopup='true'
aria-label={t('aria/Open Message Actions Menu')}
className='str-chat__message-actions-box-button'
+ data-testid='message-actions-toggle-button'
onClick={dialog?.toggleSingle}
ref={actionsBoxButtonRef}
>
diff --git a/src/components/MessageActions/__tests__/MessageActions.test.js b/src/components/MessageActions/__tests__/MessageActions.test.js
index 1783b69af..13122e5e7 100644
--- a/src/components/MessageActions/__tests__/MessageActions.test.js
+++ b/src/components/MessageActions/__tests__/MessageActions.test.js
@@ -89,6 +89,7 @@ describe(' component', () => {
aria-haspopup="true"
aria-label="Open Message Actions Menu"
className="str-chat__message-actions-box-button"
+ data-testid="message-actions-toggle-button"
onClick={[Function]}
>
component', () => {
aria-haspopup="true"
aria-label="Open Message Actions Menu"
className="str-chat__message-actions-box-button"
+ data-testid="message-actions-toggle-button"
onClick={[Function]}
>
component', () => {
aria-haspopup="true"
aria-label="Open Message Actions Menu"
className="str-chat__message-actions-box-button"
+ data-testid="message-actions-toggle-button"
onClick={[Function]}
>