@@ -56,16 +56,20 @@ void main() {
56
56
List <User >? users,
57
57
List <Subscription >? subscriptions,
58
58
UnreadMessagesSnapshot ? unreadMsgs,
59
+ int ? zulipFeatureLevel,
59
60
List <NavigatorObserver > navObservers = const [],
60
61
bool skipAssertAccountExists = false ,
61
62
}) async {
62
63
TypingNotifier .debugEnable = false ;
63
64
addTearDown (TypingNotifier .debugReset);
64
65
addTearDown (testBinding.reset);
65
66
streams ?? = subscriptions ?? = [eg.subscription (eg.stream (streamId: eg.defaultStreamMessageStreamId))];
66
- await testBinding.globalStore.add (eg.selfAccount, eg.initialSnapshot (
67
+ zulipFeatureLevel ?? = eg.recentZulipFeatureLevel;
68
+ final selfAccount = eg.selfAccount.copyWith (zulipFeatureLevel: zulipFeatureLevel);
69
+ await testBinding.globalStore.add (selfAccount, eg.initialSnapshot (
70
+ zulipFeatureLevel: zulipFeatureLevel,
67
71
streams: streams, subscriptions: subscriptions, unreadMsgs: unreadMsgs));
68
- store = await testBinding.globalStore.perAccount (eg. selfAccount.id);
72
+ store = await testBinding.globalStore.perAccount (selfAccount.id);
69
73
connection = store.connection as FakeApiConnection ;
70
74
71
75
// prepare message list data
@@ -78,7 +82,7 @@ void main() {
78
82
connection.prepare (json:
79
83
eg.newestGetMessagesResult (foundOldest: foundOldest, messages: messages).toJson ());
80
84
81
- await tester.pumpWidget (TestZulipApp (accountId: eg. selfAccount.id,
85
+ await tester.pumpWidget (TestZulipApp (accountId: selfAccount.id,
82
86
skipAssertAccountExists: skipAssertAccountExists,
83
87
navigatorObservers: navObservers,
84
88
child: MessageListPage (initNarrow: narrow)));
0 commit comments