@@ -30,6 +30,9 @@ import 'test_app.dart';
30
30
Future <Finder > setupToComposeInput (WidgetTester tester, {
31
31
required List <User > users,
32
32
}) async {
33
+ TypingNotifier .debugEnable = false ;
34
+ addTearDown (TypingNotifier .debugReset);
35
+
33
36
addTearDown (testBinding.reset);
34
37
await testBinding.globalStore.add (eg.selfAccount, eg.initialSnapshot ());
35
38
final store = await testBinding.globalStore.perAccount (eg.selfAccount.id);
@@ -132,9 +135,6 @@ void main() {
132
135
final composeInputFinder = await setupToComposeInput (tester, users: [user1, user2, user3]);
133
136
final store = await testBinding.globalStore.perAccount (eg.selfAccount.id);
134
137
135
- TypingNotifier .debugEnable = false ;
136
- addTearDown (TypingNotifier .debugReset);
137
-
138
138
// Options are filtered correctly for query
139
139
// TODO(#226): Remove this extra edit when this bug is fixed.
140
140
await tester.enterText (composeInputFinder, 'hello @user ' );
@@ -186,9 +186,6 @@ void main() {
186
186
final topicInputFinder = await setupToTopicInput (tester, topics: [topic1, topic2, topic3]);
187
187
final store = await testBinding.globalStore.perAccount (eg.selfAccount.id);
188
188
189
- TypingNotifier .debugEnable = false ;
190
- addTearDown (TypingNotifier .debugReset);
191
-
192
189
// Options are filtered correctly for query
193
190
// TODO(#226): Remove this extra edit when this bug is fixed.
194
191
await tester.enterText (topicInputFinder, 'Topic' );
0 commit comments