diff --git a/config/wdio.mac.app.conf.ts b/config/wdio.mac.app.conf.ts index 47f296fb98..c5faeb3899 100644 --- a/config/wdio.mac.app.conf.ts +++ b/config/wdio.mac.app.conf.ts @@ -54,7 +54,7 @@ export const config: WebdriverIO.Config = { platformName: "mac", "appium:automationName": MACOS_DRIVER, "appium:bundleId": MACOS_BUNDLE_ID, - "appium:arguments": ["--path", homedir() + "/.uplink"], + "appium:arguments": ["--discovery", "disable", "--path", homedir() + "/.uplink"], "appium:systemPort": 4724, "appium:prerun": { command: 'do shell script "rm -rf ~/.uplink"', diff --git a/config/wdio.mac.ci.conf.ts b/config/wdio.mac.ci.conf.ts index 5859f95d8b..650601c82a 100644 --- a/config/wdio.mac.ci.conf.ts +++ b/config/wdio.mac.ci.conf.ts @@ -54,7 +54,7 @@ export const config: WebdriverIO.Config = { platformName: "mac", "appium:automationName": MACOS_DRIVER, "appium:bundleId": MACOS_BUNDLE_ID, - "appium:arguments": ["--path", homedir() + "/.uplink"], + "appium:arguments": ["--discovery", "disable", "--path", homedir() + "/.uplink"], "appium:systemPort": 4724, "appium:prerun": { command: 'do shell script "rm -rf ~/.uplink"', diff --git a/config/wdio.mac.multiremote.conf.ts b/config/wdio.mac.multiremote.conf.ts index f42d82b642..692f8ac425 100644 --- a/config/wdio.mac.multiremote.conf.ts +++ b/config/wdio.mac.multiremote.conf.ts @@ -54,7 +54,7 @@ export const config: WebdriverIO.Config = { platformName: "mac", "appium:automationName": MACOS_DRIVER, "appium:bundleId": MACOS_USER_A_BUNDLE_ID, - "appium:arguments": ["--path", homedir() + "/.uplink"], + "appium:arguments": ["--discovery", "disable", "--path", homedir() + "/.uplink"], "appium:systemPort": 4725, "appium:prerun": { command: 'do shell script "rm -rf ~/.uplink && rm -rf ~/.uplinkUserB"', diff --git a/config/wdio.windows.app.conf.ts b/config/wdio.windows.app.conf.ts index 0b1848e28f..ae50591c09 100644 --- a/config/wdio.windows.app.conf.ts +++ b/config/wdio.windows.app.conf.ts @@ -53,6 +53,7 @@ export const config: WebdriverIO.Config = { "appium:deviceName": "WindowsPC", "appium:automationName": "windows", "appium:app": join(process.cwd(), "\\apps\\bin\\uplink.exe"), + "appium:appArguments": "--discovery disable", "ms:waitForAppLaunch": 30, "appium:prerun": { command: 'If (Test-Path $home/.uplink/.user) {Remove-Item -Recurse -Force $home/.uplink/.user} Else { Break }', diff --git a/config/wdio.windows.ci.conf.ts b/config/wdio.windows.ci.conf.ts index 121d549f2f..04ba0d1bfc 100644 --- a/config/wdio.windows.ci.conf.ts +++ b/config/wdio.windows.ci.conf.ts @@ -53,6 +53,7 @@ export const config: WebdriverIO.Config = { "appium:deviceName": "WindowsPC", "appium:automationName": "windows", "appium:app": join(process.cwd(), "\\apps\\bin\\uplink.exe"), + "appium:appArguments": "--discovery disable", "ms:waitForAppLaunch": 50, "appium:prerun": { command: 'If (Test-Path $home/.uplink/.user) {Remove-Item -Recurse -Force $home/.uplink/.user} Else { Break }', diff --git a/config/wdio.windows.multiremote.conf.ts b/config/wdio.windows.multiremote.conf.ts index d577c112f5..fe7c1b1f12 100644 --- a/config/wdio.windows.multiremote.conf.ts +++ b/config/wdio.windows.multiremote.conf.ts @@ -56,7 +56,7 @@ export const config: WebdriverIO.Config = { "appium:systemPort": 4725, "appium:createSessionTimeout": 40000, "ms:waitForAppLaunch": 50, - "appium:appArguments": "--path " + join(process.cwd(), "\\apps\\ChatUserA"), + "appium:appArguments": "--discovery disable --path " + join(process.cwd(), "\\apps\\ChatUserA"), "appium:prerun": { command: `If (Test-Path ${userACacheFolder}) {Remove-Item -Recurse -Force ${userACacheFolder}} Else { Break }`, }, @@ -71,7 +71,7 @@ export const config: WebdriverIO.Config = { "appium:systemPort": 4726, "appium:createSessionTimeout": 40000, "ms:waitForAppLaunch": 50, - "appium:appArguments": "--path " + join(process.cwd(), "\\apps\\ChatUserB"), + "appium:appArguments": "--discovery disable --path " + join(process.cwd(), "\\apps\\ChatUserB"), "appium:prerun": { command: `If (Test-Path ${userBCacheFolder}) {Remove-Item -Recurse -Force ${userBCacheFolder}} Else { Break }`, }, diff --git a/config/wdio.windows.onetime.conf.ts b/config/wdio.windows.onetime.conf.ts index 65ea4f58d4..9d6e45dcbc 100644 --- a/config/wdio.windows.onetime.conf.ts +++ b/config/wdio.windows.onetime.conf.ts @@ -52,7 +52,7 @@ export const config: WebdriverIO.Config = { "appium:deviceName": "WindowsPC", "appium:automationName": "windows", "appium:app": join(process.cwd(), "\\apps\\bin\\uplink.exe"), - "appium:appArguments": "--path " + join(process.cwd(), "\\apps\\onetimescript2") + " trace2", + "appium:appArguments": "--discovery disable --path " + join(process.cwd(), "\\apps\\onetimescript2") + " trace2", "appium:prerun": { command: 'If (Test-Path $home/.uplink/.user) {Remove-Item -Recurse -Force $home/.uplink/.user} Else { Break }', }, diff --git a/tests/helpers/commands.ts b/tests/helpers/commands.ts index 887ea9b582..92fedc201e 100644 --- a/tests/helpers/commands.ts +++ b/tests/helpers/commands.ts @@ -228,7 +228,12 @@ export async function launchSecondApplication() { await driver[USER_A_INSTANCE].executeScript("macos: launchApp", [ { bundleId: MACOS_USER_B_BUNDLE_ID, - arguments: ["--path", homedir() + "/.uplinkUserB"], + arguments: [ + "--discovery", + "disable", + "--path", + homedir() + "/.uplinkUserB", + ], }, ]); await browser.pause(5000);