File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,6 @@ void main() {
55
55
56
56
// transition: home screen -> congestion rating screen
57
57
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 ));
62
58
// check congestion markers are drawn for every congestion point
63
59
// check at least one route step is shown
64
60
final nRouteSteps =
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class CongestionRatingRobot {
25
25
}
26
26
27
27
Future <int > countPrefixed (String prefix) async {
28
- final cards = find.byKeyPrefix (prefix);
28
+ final cards = await find.byKeyPrefix (prefix). wait (tester );
29
29
return cards.evaluate ().length;
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments