Unverified Commit eafadd8b authored by Dan Field's avatar Dan Field Committed by GitHub

Try to dump app again for run_demos.dart (#85048)

parent 5e2d32fe
......@@ -61,16 +61,15 @@ Future<void> runDemos(List<String> demos, WidgetController controller) async {
final Finder demoItem = find.text(demoName);
await controller.scrollUntilVisible(demoItem, 48.0);
await controller.pumpAndSettle();
try {
await controller.tap(demoItem); // Launch the demo
} catch (e) {
if (demoItem.evaluate().isEmpty) {
print('Failed to find $demoItem');
print('All available elements:');
print(controller.allElements.toList());
print(controller.allElements.toList().join('\n'));
print('App structure:');
debugDumpApp();
rethrow;
throw TestFailure('Failed to find element');
}
await controller.tap(demoItem); // Launch the demo
if (kUnsynchronizedDemos.contains(demo)) {
// These tests have animation, pumpAndSettle cannot be used.
......
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