Catch cases in tests where people try to tap on widgets that aren't reachable. (#74798)

This commit is contained in:
Ian Hickson
2021-02-03 16:11:02 -08:00
committed by GitHub
parent 9278ea984f
commit 824042f9b2
53 changed files with 528 additions and 308 deletions

View File

@@ -132,8 +132,8 @@ class _LiveWidgetController extends LiveWidgetController {
}
@override
Future<void> tap(Finder finder, { int? pointer, int buttons = kPrimaryButton }) async {
await super.tap(await _waitForElement(finder), pointer: pointer, buttons: buttons);
Future<void> tap(Finder finder, { int? pointer, int buttons = kPrimaryButton, bool warnIfMissed = true }) async {
await super.tap(await _waitForElement(finder), pointer: pointer, buttons: buttons, warnIfMissed: warnIfMissed);
}
Future<void> scrollIntoView(Finder finder, {required double alignment}) async {