Skip to content

Commit

Permalink
msglist test [nfc]: Use findsOne
Browse files Browse the repository at this point in the history
Signed-off-by: Zixuan James Li <[email protected]>
  • Loading branch information
PIG208 committed Nov 25, 2024
1 parent a775793 commit b95b9d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/widgets/message_list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit b95b9d2

Please sign in to comment.