Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[menu-bar] Fix device selection logic #114

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

gabrieldonadel
Copy link
Member

Why

Closes ENG-10869

How

Update getDeviceByPlatform logic to check if the selectedDevicesId is available and otherwise fallback to the first running device, if no devices are running just return the first one

Test Plan

Run menu-bar locally and test the following scenarios:

  • An outdated simulator selected
  • No simulator selected but at least one simulator is running
  • No simulator selected and no simulators running

@gabrieldonadel gabrieldonadel merged commit e4a36f7 into main Dec 11, 2023
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-device-selection-logic branch December 11, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants