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

feat(android-setup): Create three state machine steps #2865

Merged
merged 4 commits into from
Jun 12, 2020
Merged

feat(android-setup): Create three state machine steps #2865

merged 4 commits into from
Jun 12, 2020

Conversation

RobGallo
Copy link
Contributor

Description of changes

The new steps are:

  • prompt-locate-adb
  • prompt-connect-to-device
    
  • detect-devices
    

Pull request checklist

  • Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

@RobGallo RobGallo requested a review from a team as a code owner June 11, 2020 23:27
@@ -7,6 +7,6 @@ export const detectAdb: AndroidSetupStepConfig = deps => ({
actions: {},
onEnter: async () => {
const detected = await deps.hasAdbPath();
deps.stepTransition(detected ? 'detect-devices' : 'prompt-locate-adb');
deps.stepTransition(detected ? 'prompt-connect-to-device' : 'prompt-locate-adb');
Copy link
Contributor

@DaveTryon DaveTryon Jun 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusion here was because it wasn't clear what hasAdbPath was doing. I read it as "is there a path in the store" when it really means "Do we have a validated ADB location?" The underlying code will decide based on whether or not the AndroidServiceConfiguratorFactory was able to return an AndroidServiceConfigurator

Copy link
Contributor

@DaveTryon DaveTryon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comments in detect-adb.ts

Copy link
Contributor

@DaveTryon DaveTryon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should rename hasAdbPath to something that more clearly identifies its internals

@RobGallo RobGallo merged commit 37756d3 into microsoft:master Jun 12, 2020
@RobGallo RobGallo deleted the steps branch June 16, 2020 11:54
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.

3 participants