add description to by-predicate finders (#6362)
Add an option to provide a custom description to predicate finders. Without a custom description we default to printing the predicate function's signature, which is not all that useful. Use this new option in the driver extension to print the text of the sought after tooltip.
This commit is contained in:
@@ -163,7 +163,7 @@ class FlutterDriverExtension {
|
||||
if (widget is Tooltip)
|
||||
return widget.message == arguments.text;
|
||||
return false;
|
||||
});
|
||||
}, description: 'widget with text tooltip "${arguments.text}"');
|
||||
}
|
||||
|
||||
Finder _createByValueKeyFinder(ByValueKey arguments) {
|
||||
|
||||
Reference in New Issue
Block a user