From e2aeda2f2020f4014cba478b459e47954175f597 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Tue, 26 Mar 2024 01:21:21 -0700 Subject: [PATCH] chore: use bundle id outside opts for this.device.devicectl.launchApp (#872) --- lib/webdriveragent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/webdriveragent.js b/lib/webdriveragent.js index 11aec45f9..113269228 100644 --- a/lib/webdriveragent.js +++ b/lib/webdriveragent.js @@ -309,9 +309,9 @@ class WebDriverAgent { async _launchViaDevicectl(opts = {}) { const {env} = opts; - await this.device.devicectl.launchApp({ - bundleId: this.bundleIdForXctest, env, terminateExisting: true, - }); + await this.device.devicectl.launchApp( + this.bundleIdForXctest, { env, terminateExisting: true } + ); // Launching app via decictl does not wait for the app start. // We should wait for the app start by ourselves.