Skip to content

Commit f8a0ed2

Browse files
authored
Merge pull request #1617 from session-foundation/chore-add-testids=empty-msg-view
chore: add datatestids to empty states
2 parents e37a3a5 + 7b86a7b commit f8a0ed2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ts/components/EmptyMessageView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const EmptyMessageView = () => {
8383
$flexDirection="column"
8484
$justifyContent="center"
8585
$alignItems="center"
86+
data-testid={newAccountCreated ? 'empty-msg-view-account-created' : 'empty-msg-view-welcome'}
8687
>
8788
{newAccountCreated ? (
8889
<>

ts/react.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ declare module 'react' {
396396
| `${NotificationRadioButtons}`
397397
| `avatar-${Avatars}`
398398
| `pro-badge-${ProBadges}`
399+
// empty msg view ids
400+
| 'empty-msg-view-account-created'
401+
| 'empty-msg-view-welcome'
399402
| 'last-updated-timestamp'
400403
| 'account-id-pill'
401404
// Once the whole app have datatestId when required, this `invalid-data-testid` will be removed

0 commit comments

Comments
 (0)