Unverified Commit 3794884f authored by Dan Field's avatar Dan Field Committed by GitHub

Deflake demo (#84593)

parent 88f38110
......@@ -49,10 +49,6 @@ Future<void> runDemos(List<String> demos, WidgetController controller) async {
}
currentDemoCategory = demoCategory;
final Finder demoItem = find.text(demoName);
await controller.scrollUntilVisible(demoItem, 48.0);
await controller.pumpAndSettle();
Future<void> pageBack() {
Finder backButton = find.byTooltip('Back');
if (backButton.evaluate().isEmpty) {
......@@ -62,6 +58,9 @@ Future<void> runDemos(List<String> demos, WidgetController controller) async {
}
for (int i = 0; i < 2; i += 1) {
final Finder demoItem = find.text(demoName);
await controller.scrollUntilVisible(demoItem, 48.0);
await controller.pumpAndSettle();
await controller.tap(demoItem); // Launch the demo
if (kUnsynchronizedDemos.contains(demo)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment