Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Mobile] Improve Screen recording on Android for Appium 2 #55443
[Mobile] Improve Screen recording on Android for Appium 2 #55443
Changes from 5 commits
9cb9ec5
6a31e64
3a3be34
ce9851f
70de242
ef7e47f
cea7d05
4cf3e8b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Currently, this function fails to meet the expected outcome in certain contexts.
The above is my current environment. While the E2E test suite launches the emulator — presumably because it is explicitly set — this function returns the ID for the connected physical device.
Should we update this line to instead filter by
emulator
or is that not a name value that we can safely presume will be consistent?Alternatively, is this a problem that doesn't need solving? Is it likely a CI environment will find itself a state with multiple devices? Are screen recordings even used in local environments where this is more likely to occur?
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.
Oh yeah, good idea, filtering by
emulator
makes sense when there's a real device connected.I thought about it but we do have plans to run our tests in our own building setup, so we will be running tests "locally" when that happens and we would need to publish these screen recordings as artifacts somewhere. Similar to what we do here in Gutenberg. This is not needed now because SauceLabs handles the recordings differently but once we migrate, we will need them.
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.
I've updated the logic in ef7e47f
I moved the function to its own file so it can be shared to other files.
I've updated it to filter the devices list for
emulators
only.Now it sets the device's ID for local Android builds to avoid conflicts when different emulator/devices are connected.