File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import fs from 'node:fs';
44import { grantIOSCameraPermission } from './test/helpers/setup' ;
55
66const isAndroid = process . env . PLATFORM === 'android' ;
7+ const androidUdid = process . env . ANDROID_UDID ;
8+ const androidDeviceName = process . env . ANDROID_DEVICE_NAME || 'Pixel_6' ;
9+ const androidPlatformVersion = process . env . ANDROID_PLATFORM_VERSION || '13.0' ;
710const iosDeviceName = process . env . SIMULATOR_NAME || 'iPhone 17' ;
811const iosPlatformVersion = process . env . SIMULATOR_OS_VERSION || '26.0.1' ;
912
@@ -71,8 +74,9 @@ export const config: WebdriverIO.Config = {
7174 ? {
7275 platformName : 'Android' ,
7376 'appium:automationName' : 'UiAutomator2' ,
74- 'appium:deviceName' : 'Pixel_6' ,
75- 'appium:platformVersion' : '13.0' ,
77+ ...( androidUdid ? { 'appium:udid' : androidUdid } : { } ) ,
78+ 'appium:deviceName' : androidDeviceName ,
79+ 'appium:platformVersion' : androidPlatformVersion ,
7680 'appium:app' : androidApp ,
7781 'appium:autoGrantPermissions' : true ,
7882 // 'appium:waitForIdleTimeout': 1000,
You can’t perform that action at this time.
0 commit comments