mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.89k stars 281 forks source link

Maestro stopped asking which device to use when many are running, defaults to Android device #2096

Open DavidREntwistle opened 1 month ago

DavidREntwistle commented 1 month ago

Is there an existing issue for this?

Steps to reproduce

  1. Open multiple devices e.g. x1 iOS simulator & x1 Android Emulator.
  2. Run the maestro test yourFlow.yaml command.
  3. Observe no Multiple running devices detected. Choose a device to run on. prompt.

Actual results

When I have multiple devices running, I cannot select which device to run the flow on with the maestro test command anymore.

If I have both an iOS simulator and android emulator running and I want to run X flow on the android emulator, I need to close the iOS simulator first, vice versa.

Expected results

When I have multiple devices running, I should be prompted with:

Multiple running devices detected. Choose a device to run on.
Enter a number from the list above:
Screenshot 2024-10-16 at 10 17 38

The maestro studio command still allows this functionality. I do not require any devices to be closed to run X flow on the correct device.

About app

About environment

Logs

N/a

Maestro version

1.37.0 - 1.39.0

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

Re-raised of this issue here as this hasn't been resolved by this fix in CLI 1.39.0.

1.36.0 did not have this issue. Occurred since 1.37.0 release.

linear[bot] commented 1 month ago

MA-2342 Maestro stopped asking which device to use when many are running, defaults to Android device