Actual: _TextContainingWidgetFinder:<Found 0 widgets with text
containing Variable button is created : []>
Which: means none were found but one was expected
Evaluation is async since it requires a response from the VM service. I think this test was flaking because we were looking for the eval response in the console too soon. This PR adds and uses a test utility function (retryUntilFound) that will retry looking for a finder with a safePumpDuration in between until the found or there are no more retries.
Work towards https://github.com/flutter/devtools/issues/8013
Tries to fix one of our top integration test flakes:
Evaluation is async since it requires a response from the VM service. I think this test was flaking because we were looking for the eval response in the console too soon. This PR adds and uses a test utility function (
retryUntilFound
) that will retry looking for afinder
with asafePumpDuration
in between until the found or there are no more retries.