diff --git a/lib/widgets/app.dart b/lib/widgets/app.dart index f52d0418f75..d52ed24e751 100644 --- a/lib/widgets/app.dart +++ b/lib/widgets/app.dart @@ -147,6 +147,8 @@ class ZulipApp extends StatelessWidget { if (initialAccountId != null) ...[ MaterialAccountWidgetRoute(accountId: initialAccountId, page: const HomePage()), + MaterialAccountWidgetRoute(accountId: initialAccountId, + page: const InboxPage()), ], ]; }); diff --git a/test/widgets/app_test.dart b/test/widgets/app_test.dart index 6cfe80dd067..020a95986f6 100644 --- a/test/widgets/app_test.dart +++ b/test/widgets/app_test.dart @@ -2,6 +2,7 @@ import 'package:checks/checks.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:zulip/widgets/app.dart'; +import 'package:zulip/widgets/inbox.dart'; import 'package:zulip/widgets/page.dart'; import '../example_data.dart' as eg; @@ -31,7 +32,7 @@ void main() { ]); }); - testWidgets('when have accounts, go to home page for first account', (tester) async { + testWidgets('when have accounts, go to inbox for first account', (tester) async { addTearDown(testBinding.reset); // We'll need per-account data for the account that a page will be opened @@ -44,6 +45,9 @@ void main() { (Subject it) => it.isA() ..accountId.equals(eg.selfAccount.id) ..page.isA(), + (Subject it) => it.isA() + ..accountId.equals(eg.selfAccount.id) + ..page.isA(), ]); }); });