From 877b68dbbd8d94113087101f76d22610b0ddc2ad Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 3 Nov 2019 01:47:11 +0100 Subject: [PATCH] Screenshotter: Add a delay Our runApp seems to take some time now. --- test_driver/main_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/test_driver/main_test.dart b/test_driver/main_test.dart index 92d4215d..e827ab01 100644 --- a/test_driver/main_test.dart +++ b/test_driver/main_test.dart @@ -11,6 +11,7 @@ void main() { // Connect to the Flutter driver before running any tests setUpAll(() async { driver = await FlutterDriver.connect(); + await Future.delayed(const Duration(seconds: 5)); }); // Close the connection to the driver after the tests have completed