maestro icon indicating copy to clipboard operation
maestro copied to clipboard

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

Open DavidREntwistle opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and didn't find mine.

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

  • Native iOS & Android app

About environment

  • MacBook Pro M2 Max - 32 GB
  • macOS Sonoma 14.6
  • arm64

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.

DavidREntwistle avatar Oct 16 '24 09:10 DavidREntwistle