From b95b9d22be96062d4e6923ee8164d224dec4eb9a Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Mon, 25 Nov 2024 13:59:43 -0500 Subject: [PATCH] msglist test [nfc]: Use findsOne Signed-off-by: Zixuan James Li --- test/widgets/message_list_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/widgets/message_list_test.dart b/test/widgets/message_list_test.dart index 1bd7f798cf0..27b270249fc 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 {