Skip to content

Commit

Permalink
test(mobile): only tap congestion point if one exists in e2e_routing_…
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
mrzzy committed Nov 13, 2024
1 parent eaf3d82 commit 1ec95b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration_test/e2e_routing_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,19 @@ void main() {

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

// tap congestion point to reveal visuals (graph, camera image view) for point
await congestionRobot.tapCongestionPoint(0);
if (nCongestionPoints > 0) {
await congestionRobot.tapCongestionPoint(0);
}
});
});
}

0 comments on commit 1ec95b6

Please sign in to comment.