@@ -336,7 +336,7 @@ void main () {
336
336
checkOnLoadingPage ();
337
337
}
338
338
339
- Future <void > tapChooseAccount (WidgetTester tester) async {
339
+ Future <void > tapTryAnotherAccount (WidgetTester tester) async {
340
340
await tester.tap (find.text ('Try another account' ));
341
341
await tester.pump (Duration .zero); // tap the button
342
342
await tester.pump (const Duration (milliseconds: 250 )); // wait for animation
@@ -377,7 +377,7 @@ void main () {
377
377
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
378
378
await prepare (tester);
379
379
await tester.pump (kTryAnotherAccountWaitPeriod);
380
- await tapChooseAccount (tester);
380
+ await tapTryAnotherAccount (tester);
381
381
382
382
await tester.tap (find.byType (BackButton ));
383
383
await tester.pump (Duration .zero); // tap the button
@@ -392,7 +392,7 @@ void main () {
392
392
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
393
393
await prepare (tester);
394
394
await tester.pump (kTryAnotherAccountWaitPeriod);
395
- await tapChooseAccount (tester);
395
+ await tapTryAnotherAccount (tester);
396
396
397
397
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration * 2 ;
398
398
await chooseAccountWithEmail (tester, eg.otherAccount.email);
@@ -410,7 +410,7 @@ void main () {
410
410
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
411
411
await prepare (tester);
412
412
await tester.pump (kTryAnotherAccountWaitPeriod);
413
- await tapChooseAccount (tester);
413
+ await tapTryAnotherAccount (tester);
414
414
415
415
// While still loading, choose a different account.
416
416
await chooseAccountWithEmail (tester, eg.otherAccount.email);
@@ -432,7 +432,7 @@ void main () {
432
432
433
433
await tester.pump (kTryAnotherAccountWaitPeriod);
434
434
// While still loading the first account, choose a different account.
435
- await tapChooseAccount (tester);
435
+ await tapTryAnotherAccount (tester);
436
436
await chooseAccountWithEmail (tester, eg.otherAccount.email);
437
437
// User cannot go back because the navigator stack
438
438
// was cleared after choosing an account.
@@ -443,7 +443,7 @@ void main () {
443
443
444
444
await tester.pump (kTryAnotherAccountWaitPeriod);
445
445
// While still loading the second account, choose a different account.
446
- await tapChooseAccount (tester);
446
+ await tapTryAnotherAccount (tester);
447
447
await chooseAccountWithEmail (tester, thirdAccount.email);
448
448
// User cannot go back because the navigator stack
449
449
// was cleared after choosing an account.
@@ -460,7 +460,7 @@ void main () {
460
460
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
461
461
await prepare (tester);
462
462
await tester.pump (kTryAnotherAccountWaitPeriod);
463
- await tapChooseAccount (tester);
463
+ await tapTryAnotherAccount (tester);
464
464
465
465
// Stall while on ChoooseAccountPage so that the account finished loading.
466
466
await tester.pump (loadPerAccountDuration);
@@ -476,7 +476,7 @@ void main () {
476
476
testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
477
477
await prepare (tester);
478
478
await tester.pump (kTryAnotherAccountWaitPeriod);
479
- await tapChooseAccount (tester);
479
+ await tapTryAnotherAccount (tester);
480
480
481
481
// Stall while on ChoooseAccountPage so that the account finished loading.
482
482
await tester.pump (loadPerAccountDuration);
0 commit comments