Skip to content

Commit

Permalink
Add message test
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Feb 10, 2024
1 parent 320a4df commit 73fa633
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ void main() {
expect(find.byType(Card), findsWidgets);
});

testWidgets('Test Message 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);
expect(find.byType(Card), findsWidgets);

await tester.tap(find.byType(InkWell).at(0));
await tester.pump(const Duration(seconds: 1));

await pumpUntilFound(tester,
find.byWidget(const Icon(Icons.arrow_right_rounded, size: 18)));
expect(find.byWidget(const Icon(Icons.arrow_right_rounded, size: 18)),
findsOneWidget);
expect(find.byType(Card), findsWidgets);
});

testWidgets('Test Homework page', (tester) async {
await prep(tester, username, password, name, false, "", true, token);

Expand Down

0 comments on commit 73fa633

Please sign in to comment.