only tap on widgets reachable by hit testing (#11767)
* only tap on widgets reachable by hit testing * use FractionalOffset * added tests * check finder finds correct widget * undo unintentional changes * address comments * style fix * add Directionality in test * fix analysis warning
This commit is contained in:
@@ -262,7 +262,10 @@ class FlutterDriverExtension {
|
||||
|
||||
Future<TapResult> _tap(Command command) async {
|
||||
final Tap tapCommand = command;
|
||||
await _prober.tap(await _waitForElement(_createFinder(tapCommand.finder)));
|
||||
final Finder computedFinder = await _waitForElement(
|
||||
_createFinder(tapCommand.finder).hitTestable()
|
||||
);
|
||||
await _prober.tap(computedFinder);
|
||||
return new TapResult();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user