Skip to content

Commit

Permalink
fix: Pass options to installApp call (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Dec 3, 2021
1 parent 87e4e11 commit 2968b0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/commands/app-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ commands.mobileQueryAppState = async function mobileQueryAppState (opts = {}) {
return await this.proxyCommand('/wda/apps/state', 'POST', requireOptions(opts, ['bundleId']));
};

commands.installApp = async function installApp (appPath) {
await this.mobileInstallApp({app: appPath});
commands.installApp = async function installApp (appPath, opts = {}) {
await this.mobileInstallApp({
...(_.isPlainObject(opts) ? opts : {}),
app: appPath,
});
};

commands.activateApp = async function activateApp (bundleId, opts = {}) {
Expand Down

0 comments on commit 2968b0e

Please sign in to comment.