File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ class ZulipApp extends StatelessWidget {
148
148
MaterialWidgetRoute (page: const ChooseAccountPage ()),
149
149
if (initialAccountId != null ) ...[
150
150
HomePage .buildRoute (accountId: initialAccountId),
151
+ InboxPage .buildRoute (accountId: initialAccountId),
151
152
],
152
153
];
153
154
});
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import 'package:zulip/model/narrow.dart';
12
12
import 'package:zulip/model/store.dart' ;
13
13
import 'package:zulip/notifications.dart' ;
14
14
import 'package:zulip/widgets/app.dart' ;
15
+ import 'package:zulip/widgets/inbox.dart' ;
15
16
import 'package:zulip/widgets/message_list.dart' ;
16
17
import 'package:zulip/widgets/page.dart' ;
17
18
@@ -198,6 +199,9 @@ void main() {
198
199
(Subject it) => it.isA <MaterialAccountWidgetRoute >()
199
200
..accountId.equals (eg.selfAccount.id)
200
201
..page.isA <HomePage >(),
202
+ (Subject it) => it.isA <MaterialAccountWidgetRoute >()
203
+ ..accountId.equals (eg.selfAccount.id)
204
+ ..page.isA <InboxPage >(),
201
205
],
202
206
];
203
207
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';
2
2
import 'package:flutter/widgets.dart' ;
3
3
import 'package:flutter_test/flutter_test.dart' ;
4
4
import 'package:zulip/widgets/app.dart' ;
5
+ import 'package:zulip/widgets/inbox.dart' ;
5
6
import 'package:zulip/widgets/page.dart' ;
6
7
7
8
import '../example_data.dart' as eg;
@@ -31,7 +32,7 @@ void main() {
31
32
]);
32
33
});
33
34
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 {
35
36
addTearDown (testBinding.reset);
36
37
37
38
// We'll need per-account data for the account that a page will be opened
@@ -44,6 +45,9 @@ void main() {
44
45
(Subject it) => it.isA <MaterialAccountWidgetRoute >()
45
46
..accountId.equals (eg.selfAccount.id)
46
47
..page.isA <HomePage >(),
48
+ (Subject it) => it.isA <MaterialAccountWidgetRoute >()
49
+ ..accountId.equals (eg.selfAccount.id)
50
+ ..page.isA <InboxPage >(),
47
51
]);
48
52
});
49
53
});
You can’t perform that action at this time.
0 commit comments