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.
This commit is contained in:
Chris Bracken
2018-05-15 17:16:35 -07:00
committed by GitHub
parent f5c4823803
commit d2d2fb4163

View File

@@ -146,7 +146,11 @@ Future<Null> runDemos(List<String> 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