mobile-dev-inc/maestro

Improve device selection prompt

Open

#1,810 opened on Jul 18, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Kotlin (6,111 stars) (306 forks)batch import
P3enhancementgood first issuemaestro cli

Description

A bit perfectionist but whatever.

$ maestro test .maestro/reminders_test.yaml
Android

[1] emulator-5554

iOS

[2] iPhone 15 Pro - iOS 17.5 - 276BC887-488A-452A-B4CC-CD6DF899EF45

Multiple running devices detected. Choose a device to run on.

Enter a number from the list above:

2
$ maestro test .maestro/reminders_test.yaml
There are multiple connected devices
[1]: emulator-5554
[2]: iPhone 15 Pro - iOS 17.5 - 276BC887-488A-452A-B4CC-CD6DF899EF45
Please choose one (or "q" to quit): 2
$ flutter run
Connected devices:
sdk gphone64 arm64 (mobile)     • emulator-5554                        • android-arm64 • Android 14 (API 34) (emulator)
iPhone 15 Pro (mobile)          • 276BC887-488A-452A-B4CC-CD6DF899EF45 • ios           • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin        • macOS 14.5 23F79 darwin-arm64

No wireless devices were found.

[1]: sdk gphone64 arm64 (emulator-5554)
[2]: iPhone 15 Pro (276BC887-488A-452A-B4CC-CD6DF899EF45)
[3]: Mac Designed for iPad (mac-designed-for-ipad)
Please choose one (or "q" to quit): 2

Contributor guide