From 3ce39f2662f32dafdecadadb6cb8cf98165c655b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 14 Jan 2025 12:07:52 +1100 Subject: [PATCH] chore: add datatestid to errorMsg label updateGroupName --- ts/components/dialog/UpdateGroupNameDialog.tsx | 1 + ts/react.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ts/components/dialog/UpdateGroupNameDialog.tsx b/ts/components/dialog/UpdateGroupNameDialog.tsx index 56835bf52..b9e7e4684 100644 --- a/ts/components/dialog/UpdateGroupNameDialog.tsx +++ b/ts/components/dialog/UpdateGroupNameDialog.tsx @@ -168,6 +168,7 @@ export function UpdateGroupNameDialog(props: { conversationId: string }) { animate={{ opacity: errorDisplayed ? 1 : 0 }} transition={{ duration: THEME_GLOBALS['--duration-modal-error-shown'] }} style={{ marginTop: errorDisplayed ? '0' : '-5px' }} + data-testid="error-message" > {errorMsg} diff --git a/ts/react.d.ts b/ts/react.d.ts index 7bd968dc1..db54dd459 100644 --- a/ts/react.d.ts +++ b/ts/react.d.ts @@ -244,6 +244,7 @@ declare module 'react' { | 'copy-msg-from-details' | 'modal-heading' | 'modal-description' + | 'error-message' // modules profile name | 'module-conversation__user__profile-name' | 'module-message-search-result__header__name__profile-name'