File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import 'package:zulip/model/store.dart';
15
15
import 'package:zulip/model/typing_status.dart' ;
16
16
import 'package:zulip/widgets/compose_box.dart' ;
17
17
import 'package:zulip/widgets/icons.dart' ;
18
+ import 'package:zulip/widgets/content.dart' ;
18
19
import 'package:zulip/widgets/message_list.dart' ;
19
20
20
21
import '../api/fake_api.dart' ;
@@ -145,10 +146,13 @@ void main() {
145
146
TestZulipBinding .ensureInitialized ();
146
147
147
148
group ('@-mentions' , () {
149
+
150
+ Finder findAvatarImage (int userId) =>
151
+ find.byWidgetPredicate ((widget) => widget is AvatarImage && widget.userId == userId);
152
+
148
153
void checkUserShown (User user, PerAccountStore store, {required bool expected}) {
149
154
check (find.text (user.fullName).evaluate ().length).equals (expected ? 1 : 0 );
150
- final avatarFinder =
151
- findNetworkImage (store.tryResolveUrl (user.avatarUrl! ).toString ());
155
+ final avatarFinder = findAvatarImage (user.userId);
152
156
check (avatarFinder.evaluate ().length).equals (expected ? 1 : 0 );
153
157
}
154
158
You can’t perform that action at this time.
0 commit comments