-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Fix visibility of web server device when Chrome is not available #40757
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
Conversation
|
I pushed some changes to the workflow test to remove the assumption that it can't list devices if there's no Chrome - however I'm not sure if this is the best way to change it (it's not clear if returning true for some flags when |
Codecov Report
@@ Coverage Diff @@
## master #40757 +/- ##
==========================================
- Coverage 59.56% 59.1% -0.47%
==========================================
Files 192 192
Lines 18683 18683
==========================================
- Hits 11129 11042 -87
- Misses 7554 7641 +87
Continue to review full report at Codecov.
|
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flags on Workflow are a bit weird, I agree. This seems correct though, its similar to an Android device discoverer having a valid SDK but no connected device.
LGTM
| Future<List<Device>> pollingGetDevices() async { | ||
| return <Device>[ | ||
| _webDevice, | ||
| if (_chromeIsAvailable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable
|
@jonahwilliams test failures were due to the tests relying on Chrome actually being on the underlying machine (because there were two checks - that we can find it, and that we can run it). I've pushed a change that moves |
|
@jonahwilliams I'm out the office shortly for a week so if you're happy with the extra change I pushed, feel free to merge in my absence (@domesticmouse may be happy having the fix to try out :-)) |
|
@jonahwilliams ping! Still looking for confirmation of the changes I pushed (2c31a79) to resolve the test issues. |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…tter#40757) * Fix visbility of web server device when Chrome is not available * Add tests * Update workflow test * Fix tests to not rely on Chrome being on the underlying machine
This removes the requirement of finding Chrome for all web devices, but does check it before providing the Chrome device.
Fixes #40814.