performActions method
Performs all actions in order.
failsAt Duration tells the test to fail after this much time
Defaults to 5 minutes
Implementation
Future<void> performActions(
{Duration failsAt = const Duration(minutes: 5)}) async {
Timer.periodic(failsAt, (timer) {
throw Exception('Test not completed after 5 minutes');
});
if (_actions.isEmpty) {
debugPrint('No actions to do');
return;
}
await _recursivePerformAction(_actions, 0);
return;
}