File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ class ZulipApp extends StatelessWidget {
146146 MaterialWidgetRoute (page: const ChooseAccountPage ()),
147147 if (initialAccountId != null ) ...[
148148 HomePage .buildRoute (accountId: initialAccountId),
149+ InboxPage .buildRoute (accountId: initialAccountId),
149150 ],
150151 ];
151152 });
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import 'package:zulip/model/narrow.dart';
1212import 'package:zulip/model/store.dart' ;
1313import 'package:zulip/notifications.dart' ;
1414import 'package:zulip/widgets/app.dart' ;
15+ import 'package:zulip/widgets/inbox.dart' ;
1516import 'package:zulip/widgets/message_list.dart' ;
1617import 'package:zulip/widgets/page.dart' ;
1718
@@ -198,6 +199,9 @@ void main() {
198199 (Subject it) => it.isA <MaterialAccountWidgetRoute >()
199200 ..accountId.equals (eg.selfAccount.id)
200201 ..page.isA <HomePage >(),
202+ (Subject it) => it.isA <MaterialAccountWidgetRoute >()
203+ ..accountId.equals (eg.selfAccount.id)
204+ ..page.isA <InboxPage >(),
201205 ],
202206 ];
203207 check (pushedRoutes.take (expected.length)).deepEquals (expected);
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:checks/checks.dart';
22import 'package:flutter/widgets.dart' ;
33import 'package:flutter_test/flutter_test.dart' ;
44import 'package:zulip/widgets/app.dart' ;
5+ import 'package:zulip/widgets/inbox.dart' ;
56import 'package:zulip/widgets/page.dart' ;
67
78import '../example_data.dart' as eg;
@@ -31,7 +32,7 @@ void main() {
3132 ]);
3233 });
3334
34- testWidgets ('when have accounts, go to home page for first account' , (tester) async {
35+ testWidgets ('when have accounts, go to inbox for first account' , (tester) async {
3536 addTearDown (testBinding.reset);
3637
3738 // We'll need per-account data for the account that a page will be opened
@@ -44,6 +45,9 @@ void main() {
4445 (Subject it) => it.isA <MaterialAccountWidgetRoute >()
4546 ..accountId.equals (eg.selfAccount.id)
4647 ..page.isA <HomePage >(),
48+ (Subject it) => it.isA <MaterialAccountWidgetRoute >()
49+ ..accountId.equals (eg.selfAccount.id)
50+ ..page.isA <InboxPage >(),
4751 ]);
4852 });
4953 });
You can’t perform that action at this time.
0 commit comments