Skip to content

Commit 110e988

Browse files
committed
test(mobile): give avatar thread fixture a reply
Signed-off-by: Tom Brow <[email protected]>
1 parent 15f35f4 commit 110e988

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎mobile/test/features/channels/channel_detail_page_test.dart‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,25 @@ void main() {
556556
pubkey: 'bot',
557557
content: 'Bot message',
558558
);
559+
final reply = _textMsg(
560+
id: 'bot-reply',
561+
pubkey: 'alice',
562+
content: 'Reply to bot',
563+
createdAt: 1100,
564+
extraTags: const [
565+
['e', 'bot-message', '', 'reply'],
566+
],
567+
);
559568
await tester.pumpWidget(
560569
_buildTestable(
561-
messages: [message],
570+
messages: [message, reply],
562571
users: const {
563572
'bot': UserProfile(pubkey: 'bot', displayName: 'Bot'),
564573
},
565574
loadChannelBotPubkeys: () async => const {'bot'},
566-
threadReplies: const {'bot-message': []},
575+
threadReplies: {
576+
'bot-message': [reply],
577+
},
567578
),
568579
);
569580
await tester.pumpAndSettle();

0 commit comments

Comments
 (0)