diff --git a/test/landing/view/landing_page_test.dart b/test/landing/view/landing_page_test.dart index 1b48931d..6e280291 100644 --- a/test/landing/view/landing_page_test.dart +++ b/test/landing/view/landing_page_test.dart @@ -13,5 +13,20 @@ void main() { await tester.pumpApp(const LandingPage()); expect(find.byType(TextButton), findsOneWidget); }); + + testWidgets('tapping on TextButton navigates to PinballGamePage', + (tester) async { + // TODO(erickzanardo): Make test pass. + await tester.pumpApp(const LandingPage()); + await tester.tap( + find.byType( + TextButton, + ), + ); + await tester.pumpAndSettle(); + + expect(find.byType(PinballGamePage), findsOneWidget); + expect(find.byType(LandingPage), findsNothing); + }); }); }