Skip to content

Commit

Permalink
Wait in integration tests until timetable is loaded (#982)
Browse files Browse the repository at this point in the history
We had several iOS integration test failures where the courses in the
timetable couldn't be found. I added a method call to wait until we
found the first course. Maybe this will improve the stability of the CI.

Closes #981
  • Loading branch information
nilsreichardt authored Sep 16, 2023
1 parent 890668e commit f4c48a1
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 f4c48a1

Please sign in to comment.