@@ -5,10 +5,11 @@ export function lambdaTestAndroidEmusWeb({ buildName }: { buildName: string }) {
55 const mobileSpecs = join ( process . cwd ( ) , './tests/specs/mobile.web.spec.ts' )
66 const nativeWebScreenshotPhones = ( [ 'landscape' , 'portrait' ] as DeviceOrientation [ ] )
77 . map ( ( orientation ) =>
8- [ '11 ' , '12 ' , '13' , '14' , '15 '] . map (
8+ [ '14 ' , '15 ' , '16 ' ] . map (
99 ( platformVersion ) =>
1010 createCaps ( {
1111 platformVersion : platformVersion ,
12+ deviceName : 'Pixel 9 Pro' ,
1213 mobileSpecs,
1314 build : buildName ,
1415 deviceOrientation : orientation ,
@@ -17,24 +18,25 @@ export function lambdaTestAndroidEmusWeb({ buildName }: { buildName: string }) {
1718 )
1819 )
1920 . flat ( 1 )
20- // We limit it to the latest 2 versions of Android Tablets that LT supports
21- const nativeWebScreenshotTablets = ( [ 'landscape' , 'portrait' ] as DeviceOrientation [ ] )
22- . map ( ( orientation ) =>
23- [ '13' , '14' ] . map ( ( platformVersion ) => {
24- return createCaps ( {
25- deviceName : 'Galaxy Tab S8' ,
26- platformVersion : platformVersion ,
27- mobileSpecs,
28- build : buildName ,
29- deviceOrientation : orientation ,
30- // @TODO : There are issues to get certain screenshots with nativeWebScreenshot in LANDSCAPE mode
31- // - element screenshots are not perfect
32- // - Fullpage screenshots have the address bar in the screenshot
33- wdioIcsCommands : [ 'checkScreen' , 'checkElement' , 'checkFullPageScreen' ] ,
34- } )
35- } )
36- )
37- . flat ( 1 )
21+ // Disabled for now, as we don't have proper support for Android Tablets, we only support latest -3
22+ // // We limit it to the latest 2 versions of Android Tablets that LT supports
23+ // const nativeWebScreenshotTablets = (['landscape', 'portrait'] as DeviceOrientation[])
24+ // .map((orientation) =>
25+ // ['13', '14'].map((platformVersion) => {
26+ // return createCaps({
27+ // deviceName: 'Galaxy Tab S8',
28+ // platformVersion: platformVersion,
29+ // mobileSpecs,
30+ // build: buildName,
31+ // deviceOrientation: orientation,
32+ // // @TODO : There are issues to get certain screenshots with nativeWebScreenshot in LANDSCAPE mode
33+ // // - element screenshots are not perfect
34+ // // - Fullpage screenshots have the address bar in the screenshot
35+ // wdioIcsCommands: ['checkScreen', 'checkElement', 'checkFullPageScreen'],
36+ // })
37+ // })
38+ // )
39+ // .flat(1)
3840
3941 return [
4042 /**
@@ -48,8 +50,9 @@ export function lambdaTestAndroidEmusWeb({ buildName }: { buildName: string }) {
4850 // * Android Tablets
4951 // * 20241216: LT doesn't have the option to take a ChromeDriver screenshot,
5052 // * so if it's Android it's always native
53+ // * 20260531: Disabled for now, as we don't have proper support for Android Tablets, we only support latest -3
5154 // */
52- ...nativeWebScreenshotTablets ,
55+ // ...nativeWebScreenshotTablets,
5356 ]
5457}
5558
@@ -93,7 +96,7 @@ function createCaps({
9396 const driverScreenshotType = 'NativeWebScreenshot'
9497 const adjustedDeviceName = deviceName !== '' ?
9598 deviceName :
96- Number ( platformVersion ) < 14 ? 'Pixel 4 ' : 'Pixel 9 Pro'
99+ Number ( platformVersion ) > 16 ? 'Pixel 10 Pro ' : 'Pixel 9 Pro'
97100
98101 return {
99102 'lt:options' : {
@@ -104,6 +107,7 @@ function createCaps({
104107 build,
105108 w3c : true ,
106109 queueTimeout : 900 ,
110+ ...( Number ( platformVersion ) > 14 ? { appiumVersion : '3.0.2' } : { } ) ,
107111 } ,
108112 specs : [ mobileSpecs ] ,
109113 'wdio-ics:options' : {
0 commit comments