Skip to content

Commit eaf3d82

Browse files
committed
test(mobile): fix missing wait on finder for CongestionRatingRobot.countPrefixed()
1 parent c4187de commit eaf3d82

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

integration_test/e2e_routing_test.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ void main() {
5555

5656
// transition: home screen -> congestion rating screen
5757
final congestionRobot = CongestionRatingRobot(tester: tester);
58-
// check at least one congestion point is listed
59-
final nCongestionPoints =
60-
await congestionRobot.countPrefixed(WidgetKeys.congestionPointPrefix);
61-
expect(nCongestionPoints, greaterThan(0));
6258
// check congestion markers are drawn for every congestion point
6359
// check at least one route step is shown
6460
final nRouteSteps =

integration_test/robots/congestion_rating_robot.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CongestionRatingRobot {
2525
}
2626

2727
Future<int> countPrefixed(String prefix) async {
28-
final cards = find.byKeyPrefix(prefix);
28+
final cards = await find.byKeyPrefix(prefix).wait(tester);
2929
return cards.evaluate().length;
3030
}
3131

0 commit comments

Comments
 (0)