@@ -31,6 +31,7 @@ import '../stdlib_checks.dart';
31
31
import '../test_images.dart' ;
32
32
import 'content_test.dart' ;
33
33
import 'dialog_checks.dart' ;
34
+ import 'message_list_test.dart' ;
34
35
import 'test_app.dart' ;
35
36
import 'text_test.dart' ;
36
37
@@ -227,6 +228,27 @@ void main() {
227
228
}
228
229
}
229
230
}
231
+
232
+ testWidgets ('show "Muted user" label for muted reactors' , (tester) async {
233
+ final user1 = eg.user (userId: 1 , fullName: 'User 1' );
234
+ final user2 = eg.user (userId: 2 , fullName: 'User 2' );
235
+
236
+ await prepare ();
237
+ await store.addUsers ([user1, user2]);
238
+ await store.muteUsers ([user1.userId]);
239
+ await setupChipsInBox (tester,
240
+ reactions: [
241
+ Reaction .fromJson ({'emoji_name' : '+1' , 'emoji_code' : '1f44d' , 'reaction_type' : 'unicode_emoji' , 'user_id' : user1.userId}),
242
+ Reaction .fromJson ({'emoji_name' : '+1' , 'emoji_code' : '1f44d' , 'reaction_type' : 'unicode_emoji' , 'user_id' : user2.userId}),
243
+ ]);
244
+
245
+ final reactionChipFinder = find.byType (ReactionChip );
246
+ check (reactionChipFinder.evaluate ().singleOrNull).isNotNull ();
247
+ check (find.descendant (
248
+ of: reactionChipFinder,
249
+ matching: find.text ('${localizations .mutedUser }, ${store .userDisplayName (user2 .userId )}' )
250
+ ).evaluate ().singleOrNull).isNotNull ();
251
+ });
230
252
});
231
253
232
254
testWidgets ('Smoke test for light/dark/lerped' , (tester) async {
0 commit comments