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

fix: uninstall wda with '.xctrunner' suffix for real device #1052

Merged
merged 20 commits into from
Sep 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tweak control flow
  • Loading branch information
KazuCocoa committed Aug 29, 2019
commit c7beac73adaae1d9ce04a4dbb7ee28b590686ee6
10 changes: 4 additions & 6 deletions lib/wda/webdriveragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,12 @@ class WebDriverAgent {
* Over Xcode 11, multiple WDA can be in a device since Xcode 11
* set their bundleIds as 'xxxxxx.xctrunner'.
*
* @returns {Array<string>} A list of User level apps' bundle ids which has
* 'CFBundleName' attribute as 'WebDriverAgentRunner-Runner'.
* @returns {Array<string>} A list of User level apps' bundle ids.
*/
async getInstalledWDBundleId () {
if (this.isRealDevice) {
return await getIBundleIdsByCFBundleName(this.device, WDA_CF_BUNDLE_NAME);
}
return await getInstalledBundleIds(this.device, [WDA_BUNDLE_ID, WDA_BUNDLE_ID_XCODE11]);
return this.isRealDevice
? await getIBundleIdsByCFBundleName(this.device, WDA_CF_BUNDLE_NAME)
: await getInstalledBundleIds(this.device, [WDA_BUNDLE_ID, WDA_BUNDLE_ID_XCODE11]);
}
}

Expand Down