getBehaviorDrivenDescription method
Gets the most appropriate BDD string based on the values set on the step.
Implementation
@override
String getBehaviorDrivenDescription(TestController tester) {
var result = timeout == null
? behaviorDrivenDescriptions[0]
: behaviorDrivenDescriptions[1];
result = result.replaceAll('{{hide}}', hide == false ? 'show' : 'hide');
result = result.replaceAll('{{testableId}}', testableId);
result = result.replaceAll(
'{{timeout}}', timeout?.inSeconds.toString() ?? 'null');
return result;
}