getBehaviorDrivenDescription method
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[1];
} else {
result = behaviorDrivenDescriptions[0];
result = result.replaceAll(
'{{timeout}}',
timeout!.inSeconds.toString(),
);
}
result = result.replaceAll('{{field}}', field);
result = result.replaceAll('{{testableId}}', testableId);
result = result.replaceAll('{{value}}', value ?? 'null');
return result;
}