mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Try to dump app again for run_demos.dart (#85048)
This commit is contained in:
parent
5e2d32fe97
commit
eafadd8b1c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user