From 7b86a7b393f0084575e89119fc85afc0edffb96b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 25 Sep 2025 07:09:04 +0200 Subject: [PATCH] chore: add datatestids to empty states --- ts/components/EmptyMessageView.tsx | 1 + ts/react.d.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ts/components/EmptyMessageView.tsx b/ts/components/EmptyMessageView.tsx index 2ae23ec65..726d3ea05 100644 --- a/ts/components/EmptyMessageView.tsx +++ b/ts/components/EmptyMessageView.tsx @@ -83,6 +83,7 @@ export const EmptyMessageView = () => { $flexDirection="column" $justifyContent="center" $alignItems="center" + data-testid={newAccountCreated ? 'empty-msg-view-account-created' : 'empty-msg-view-welcome'} > {newAccountCreated ? ( <> diff --git a/ts/react.d.ts b/ts/react.d.ts index 72a752bb8..a2a92a24d 100644 --- a/ts/react.d.ts +++ b/ts/react.d.ts @@ -396,6 +396,9 @@ declare module 'react' { | `${NotificationRadioButtons}` | `avatar-${Avatars}` | `pro-badge-${ProBadges}` + // empty msg view ids + | 'empty-msg-view-account-created' + | 'empty-msg-view-welcome' | 'last-updated-timestamp' | 'account-id-pill' // Once the whole app have datatestId when required, this `invalid-data-testid` will be removed