Skip to content

Commit

Permalink
Wait in integration tests until timetable is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Sep 16, 2023
1 parent 968361d commit 005dcaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ void main() {
await tester.tap(find.byKey(const Key('nav-item-timetable-E2E')));
await tester.pumpAndSettle();

// Ensure that the timetable is loaded. We assume that the timetable is
// loaded when we found one of the courses.
await tester.pumpUntil(find.text('Deutsch LK'));

// We assume that we can load the timetable when we found x-times the name
// of the course (the name of the course is included a lesson).
expect(find.text('Deutsch LK'), findsNWidgets(6));
Expand Down

0 comments on commit 005dcaf

Please sign in to comment.