getBehaviorDrivenDescription method

  1. @override
String getBehaviorDrivenDescription(
  1. TestController tester
)
override

Gets the most appropriate BDD string based on the values set on the step.

Implementation

@override
String getBehaviorDrivenDescription(TestController tester) {
  String result;

  if (timeout == null) {
    result = behaviorDrivenDescriptions[0];
  } else {
    result = behaviorDrivenDescriptions[1];
    result = result.replaceAll(
      '{{timeout}}',
      timeout!.inSeconds.toString(),
    );
  }

  result = result.replaceAll('{{testableId}}', testableId);

  return result;
}