From 33dc819e30f6c0e12dc17711b1d546bf0244ac04 Mon Sep 17 00:00:00 2001 From: vyPal <66716025+vyPal@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:40:19 +0100 Subject: [PATCH] Add message page test --- integration_test/app_test.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/integration_test/app_test.dart b/integration_test/app_test.dart index dae8397..02a6f00 100644 --- a/integration_test/app_test.dart +++ b/integration_test/app_test.dart @@ -71,6 +71,16 @@ void main() { await pumpUntilFound(tester, find.textContaining("$day $month")); expect(find.textContaining("$day $month"), findsWidgets); }); + + testWidgets('Test Messages page', (tester) async { + await prep(tester, username, password, name, false, "", true, token); + + await tester.tap(find.byType(NavigationDestination).at(2)); + await tester.pump(const Duration(seconds: 1)); + + await pumpUntilFound(tester, find.text("Messages")); + expect(find.text("Messages"), findsWidgets); + }); }); }