Skip to content

Instantly share code, notes, and snippets.

@tomaszpolanski
Created April 5, 2021 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaszpolanski/1ae720e7933acb0156fdf2d979584b87 to your computer and use it in GitHub Desktop.
Save tomaszpolanski/1ae720e7933acb0156fdf2d979584b87 to your computer and use it in GitHub Desktop.
final finder = find.text('Done');
for (int i = 0; i < 10; i++) {
await tester.pump(const Duration(seconds: 1));
if (findsOneWidget.matches(finder, {})) {
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment