mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
f5c4823803
commit
d2d2fb4163
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user