Skip to content

Commit 1e47722

Browse files
Ws/update-android-ios-version-support (#1149)
* chore: remove iOS 16 * chore: add ios 26.2 * chore: reduce image ios * chore: update mobile web spec * chore: add android support 14-16 * chore: reduce support for Android - remove 13/14 for tablets - remove images * chore: simplify tests for mobile * chore: fix padding
1 parent 33951d5 commit 1e47722

125 files changed

Lines changed: 82 additions & 124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/configs/lambdatest.android.emus.web.ts

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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': {

tests/configs/lambdatest.ios.sims.web.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,18 @@ export function lambdaTestIosSimWeb({ buildName }: { buildName: string }) {
55
const mobileSpecs = join(process.cwd(), './tests/specs/mobile.web.spec.ts')
66
const iOSDevices = [
77
{
8-
// 812
9-
appiumVersion: '2.16.2',
10-
deviceName: 'iPhone 13 mini',
11-
platformVersion: '17.5',
12-
},
13-
{
14-
// 844
15-
appiumVersion: '2.16.2',
16-
deviceName: 'iPhone 13 Pro',
17-
platformVersion: '16.0',
18-
},
19-
{
20-
// 852
21-
appiumVersion: '2.16.2',
8+
appiumVersion: '3.0.2',
229
deviceName: 'iPhone 14 Pro',
2310
platformVersion: '17.5',
2411
},
2512
{
26-
// 932
27-
appiumVersion: '2.16.2',
13+
appiumVersion: '3.0.2',
2814
deviceName: 'iPhone 15 Pro Max',
29-
platformVersion: '18.0',
15+
platformVersion: '18.5',
16+
},
17+
{
18+
deviceName: 'iPhone 17 Pro Max',
19+
platformVersion: '26.2',
3020
}
3121
]
3222

0 commit comments

Comments
 (0)