-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwdio.no-install.conf.ts
More file actions
48 lines (44 loc) · 1.72 KB
/
wdio.no-install.conf.ts
File metadata and controls
48 lines (44 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* WDIO config that attaches to the already-installed app on the simulator.
* Does NOT reinstall, reset, or modify the app. Just connects via Appium.
*
* Usage:
* BACKEND=regtest npx wdio wdio.no-install.conf.ts --spec ./test/specs/receive-ln-payments.e2e.ts
*/
import { config as baseConfig } from './wdio.conf';
const isAndroid = process.env.PLATFORM === 'android';
const iosDeviceName = process.env.SIMULATOR_NAME || 'iPhone 17';
const iosPlatformVersion = process.env.SIMULATOR_OS_VERSION || '26.0.1';
const appBundleId = process.env.APP_ID_IOS ?? 'to.bitkit';
const androidAppId = process.env.APP_ID_ANDROID ?? 'to.bitkit.dev';
export const config: WebdriverIO.Config = {
...baseConfig,
specs: [['./test/specs/receive-ln-payments.e2e.ts']],
capabilities: [
isAndroid
? {
platformName: 'Android',
'appium:automationName': 'UiAutomator2',
'appium:appPackage': androidAppId,
'appium:appActivity': '.ui.MainActivity',
'appium:noReset': true,
'appium:fullReset': false,
'appium:autoGrantPermissions': true,
'appium:newCommandTimeout': 300,
}
: {
platformName: 'iOS',
'appium:automationName': 'XCUITest',
'appium:udid': process.env.SIMULATOR_UDID || 'auto',
'appium:deviceName': iosDeviceName,
...(iosPlatformVersion ? { 'appium:platformVersion': iosPlatformVersion } : {}),
'appium:bundleId': appBundleId,
'appium:noReset': true,
'appium:fullReset': false,
'appium:autoAcceptAlerts': false,
'appium:newCommandTimeout': 300,
'appium:wdaLaunchTimeout': 300000,
'appium:wdaConnectionTimeout': 300000,
},
],
};