Revert "Always evaluate the finder in driver.waitFor*()" (#11451)
* Revert "Make plugins add their repos to projects in the consuming app (#11447)" This reverts commitabe1e2520b. * Revert "Support for custom build types on Android (#11354)" This reverts commit87eec719e2. * Revert "add a profile() method (#11443)" This reverts commit561d17a876. * Revert "Fix documentation based on dartdoc's warnings (#11428)" This reverts commit6655074b37. * Revert "Improve some docs around WillPopScope. (#11429)" This reverts commit58a28a2965. * Revert "temporarily disable broken driver test in integration_ui (#11440)" This reverts commit764515ec78. * Revert "style fix" This reverts commit00bfc86630. * Revert "tests for waitFor/waitForAbsent" This reverts commit31d2ee9c0c. * Revert "Always evaluate the finder in `driver.waitFor()` and `driver.waitForAbsent()`" This reverts commit11d7c79b99.
This commit is contained in:
@@ -200,7 +200,7 @@ class FlutterDriverExtension {
|
||||
if (_frameSync)
|
||||
await _waitUntilFrame(() => SchedulerBinding.instance.transientCallbackCount == 0);
|
||||
|
||||
await _waitUntilFrame(() => finder.evaluate().isNotEmpty);
|
||||
await _waitUntilFrame(() => finder.precache());
|
||||
|
||||
if (_frameSync)
|
||||
await _waitUntilFrame(() => SchedulerBinding.instance.transientCallbackCount == 0);
|
||||
@@ -213,7 +213,7 @@ class FlutterDriverExtension {
|
||||
if (_frameSync)
|
||||
await _waitUntilFrame(() => SchedulerBinding.instance.transientCallbackCount == 0);
|
||||
|
||||
await _waitUntilFrame(() => finder.evaluate().isEmpty);
|
||||
await _waitUntilFrame(() => !finder.precache());
|
||||
|
||||
if (_frameSync)
|
||||
await _waitUntilFrame(() => SchedulerBinding.instance.transientCallbackCount == 0);
|
||||
@@ -268,8 +268,10 @@ class FlutterDriverExtension {
|
||||
|
||||
Future<WaitForResult> _waitFor(Command command) async {
|
||||
final WaitFor waitForCommand = command;
|
||||
await _waitForElement(_createFinder(waitForCommand.finder));
|
||||
return new WaitForResult();
|
||||
if ((await _waitForElement(_createFinder(waitForCommand.finder))).evaluate().isNotEmpty)
|
||||
return new WaitForResult();
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<WaitForAbsentResult> _waitForAbsent(Command command) async {
|
||||
|
||||
Reference in New Issue
Block a user