diff --git a/test/widgets/message_list_test.dart b/test/widgets/message_list_test.dart index 1bd7f798cf..27b270249f 100644 --- a/test/widgets/message_list_test.dart +++ b/test/widgets/message_list_test.dart @@ -822,7 +822,7 @@ void main() { check(find.descendant( of: find.byType(StreamMessageRecipientHeader), matching: find.byIcon(ZulipIcons.hash_sign), - ).evaluate()).length.equals(1); + )).findsOne(); }); testWidgets('public streams show globe icon', (tester) async { @@ -834,7 +834,7 @@ void main() { check(find.descendant( of: find.byType(StreamMessageRecipientHeader), matching: find.byIcon(ZulipIcons.globe), - ).evaluate()).length.equals(1); + )).findsOne(); }); testWidgets('private streams show lock icon', (tester) async { @@ -846,7 +846,7 @@ void main() { check(find.descendant( of: find.byType(StreamMessageRecipientHeader), matching: find.byIcon(ZulipIcons.lock), - ).evaluate()).length.equals(1); + )).findsOne(); }); testWidgets('show stream name from message when stream unknown', (tester) async {