From d2d2fb4163ab2b1fb3cd79e54811f97b606f44b5 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 15 May 2018 17:16:35 -0700 Subject: [PATCH] Increase gallery perf scrollUntilVisible timeout (#17633) On smaller-screen devices such as the iPhone 4s, more scrolling is required between the Material dialog demo and the Material pickers demo than will happen within the default timeout. --- .../flutter_gallery/test_driver/transitions_perf_test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/flutter_gallery/test_driver/transitions_perf_test.dart b/examples/flutter_gallery/test_driver/transitions_perf_test.dart index 03ddb1f3752..da7f1f603fc 100644 --- a/examples/flutter_gallery/test_driver/transitions_perf_test.dart +++ b/examples/flutter_gallery/test_driver/transitions_perf_test.dart @@ -146,7 +146,11 @@ Future runDemos(List demos, FlutterDriver driver) async { currentDemoCategory = demoCategory; final SerializableFinder demoItem = find.text(demoName); - await driver.scrollUntilVisible(demoList, demoItem, dyScroll: -48.0, alignment: 0.5); + await driver.scrollUntilVisible(demoList, demoItem, + dyScroll: -48.0, + alignment: 0.5, + timeout: const Duration(seconds: 30), + ); for (int i = 0; i < 2; i += 1) { await driver.tap(demoItem); // Launch the demo