@@ -96,8 +96,6 @@ void main() {
96
96
final navigator = await ZulipApp .navigator;
97
97
unawaited (navigator.push (LoginPage .buildRoute (serverSettings: serverSettings)));
98
98
await tester.pumpAndSettle ();
99
- takeStartingRoutes ();
100
- check (pushedRoutes).isEmpty ();
101
99
}
102
100
103
101
final findUsernameInput = find.byWidgetPredicate ((widget) =>
@@ -136,6 +134,8 @@ void main() {
136
134
testWidgets ('basic happy case' , (tester) async {
137
135
final serverSettings = eg.serverSettings ();
138
136
await prepare (tester, serverSettings);
137
+ takeStartingRoutes ();
138
+ check (pushedRoutes).isEmpty ();
139
139
check (testBinding.globalStore.accounts).isEmpty ();
140
140
141
141
await login (tester, eg.selfAccount);
@@ -147,6 +147,8 @@ void main() {
147
147
testWidgets ('trims whitespace on username' , (tester) async {
148
148
final serverSettings = eg.serverSettings ();
149
149
await prepare (tester, serverSettings);
150
+ takeStartingRoutes ();
151
+ check (pushedRoutes).isEmpty ();
150
152
check (testBinding.globalStore.accounts).isEmpty ();
151
153
152
154
await tester.enterText (findUsernameInput, ' ${eg .selfAccount .email } ' );
@@ -168,6 +170,8 @@ void main() {
168
170
testWidgets ('account already exists' , (tester) async {
169
171
final serverSettings = eg.serverSettings ();
170
172
await prepare (tester, serverSettings);
173
+ takeStartingRoutes ();
174
+ check (pushedRoutes).isEmpty ();
171
175
check (testBinding.globalStore.accounts).isEmpty ();
172
176
await testBinding.globalStore.add (eg.selfAccount, eg.initialSnapshot ());
173
177
@@ -207,6 +211,8 @@ void main() {
207
211
externalAuthenticationMethods: [method]);
208
212
prepareBoringImageHttpClient (); // icon on social-auth button
209
213
await prepare (tester, serverSettings);
214
+ takeStartingRoutes ();
215
+ check (pushedRoutes).isEmpty ();
210
216
check (testBinding.globalStore.accounts).isEmpty ();
211
217
212
218
const otp = '186f6d085a5621ebaf1ccfc05033e8acba57dae03f061705ac1e58c402c30a31' ;
0 commit comments