mobile-dev-inc / maestro

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

Incorrect device is selected on WSL2 #1799

Open 7maucdn opened 2 months ago

7maucdn commented 2 months ago

my computer has connected to two android devices

root@77eb305b9761:/TestSuites# adb devices
List of devices attached
127.0.0.1:50460 device
127.0.0.1:51755 device

On my WSL 2, i run below command to run tests on the 127.0.0.1:51755 device, but it's still open device 127.0.0.1:50460, not specified 127.0.0.1:51755:

maestro \
  --host host.docker.internal \
  --device 127.0.0.1:51755 \
  test Loggin.yaml \
  -e AUTHENTICATED_MODE=true \
  -e TEST_USERNAME=tester \
  -e TEST_PASSWORD=123456

I have run my React Native project (Expo) and used the "select a device or emulator" menu to select the device to run, and it works. I think the maestro library has a problem.

bartekpacia commented 2 months ago

Hi @7maucdn, thanks for creating the bug report and sorry about the problem you're having! Unfortunately I don't have an access to a Windows machine right now so can't try to reproduce it and help. But maybe someone from the community with a Windows PC could chime in and help, if they faced the same problem.

7maucdn commented 1 month ago

This guy has also reported the same problems: https://github.com/mobile-dev-inc/maestro/issues/1736