From 8efa2a0920b5c3acc111816d9729970d930dfa63 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 6 Oct 2026 14:48:30 +0200 Subject: [PATCH 1/3] Run mobile web iOS simulators on iOS 18.6 The iOS 26 simulator sessions intermittently end up on about:blank after a page load. Sauce's Appium build predates iOS 26, so move both simulators to iOS 18.6 (iPhone 13 and iPhone 11). Co-Authored-By: Claude Opus 5.5 --- best_practice/mobile_web/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/best_practice/mobile_web/conftest.py b/best_practice/mobile_web/conftest.py index 8198930..44e2137 100644 --- a/best_practice/mobile_web/conftest.py +++ b/best_practice/mobile_web/conftest.py @@ -13,16 +13,16 @@ emusim_browsers = [ { - "deviceName": "iPhone 16 Simulator", + "deviceName": "iPhone 13 Simulator", "browserName": "Safari", "deviceOrientation": "portrait", - "platformVersion": "26.5", + "platformVersion": "18.6", "platformName": "iOS" }, { "deviceName": "iPhone 11 Simulator", "browserName": "Safari", "deviceOrientation": "portrait", - "platformVersion": "26.1", + "platformVersion": "18.6", "platformName": "iOS" }, { "deviceName": "Google Pixel 3 XL GoogleAPI Emulator", From 14af4b346bd3965f4f3ebf19f953d723b1837270 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 6 Oct 2026 14:55:14 +0200 Subject: [PATCH 2/3] Revert "Run mobile web iOS simulators on iOS 18.6" This reverts commit 8efa2a0920b5c3acc111816d9729970d930dfa63. --- best_practice/mobile_web/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/best_practice/mobile_web/conftest.py b/best_practice/mobile_web/conftest.py index 44e2137..8198930 100644 --- a/best_practice/mobile_web/conftest.py +++ b/best_practice/mobile_web/conftest.py @@ -13,16 +13,16 @@ emusim_browsers = [ { - "deviceName": "iPhone 13 Simulator", + "deviceName": "iPhone 16 Simulator", "browserName": "Safari", "deviceOrientation": "portrait", - "platformVersion": "18.6", + "platformVersion": "26.5", "platformName": "iOS" }, { "deviceName": "iPhone 11 Simulator", "browserName": "Safari", "deviceOrientation": "portrait", - "platformVersion": "18.6", + "platformVersion": "26.1", "platformName": "iOS" }, { "deviceName": "Google Pixel 3 XL GoogleAPI Emulator", From 4d60e64c7043ec378555147afd59f649bfa632ed Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 6 Oct 2026 14:55:23 +0200 Subject: [PATCH 3/3] Rerun failed iOS simulator mobile web tests Some iOS simulator sessions on Sauce Labs stay on about:blank after the first page load, on both iOS 18.6 and 26.x, while a new session usually works. Rerun failed vdc tests up to twice with pytest-rerunfailures. Co-Authored-By: Claude Opus 5.5 --- best_practice/mobile_web/Pipfile | 5 +++-- best_practice/mobile_web/Pipfile.lock | 11 ++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/best_practice/mobile_web/Pipfile b/best_practice/mobile_web/Pipfile index 088f548..1174194 100644 --- a/best_practice/mobile_web/Pipfile +++ b/best_practice/mobile_web/Pipfile @@ -3,10 +3,11 @@ pytest = "==9.1.1" pytest-xdist = "==3.8.0" selenium = "==4.50.0" Appium-Python-Client = "==6.0.7" +pytest-rerunfailures = "==16.7" [scripts] -best-practice-mobile-web-vdc-us = "pytest -n8 --dc=us vdc" -best-practice-mobile-web-vdc-eu = "pytest -n8 --dc=eu vdc" +best-practice-mobile-web-vdc-us = "pytest -n8 --reruns 2 --dc=us vdc" +best-practice-mobile-web-vdc-eu = "pytest -n8 --reruns 2 --dc=eu vdc" best-practice-mobile-web-rdc-us = "pytest -n8 --dc=us rdc" best-practice-mobile-web-rdc-eu = "pytest -n8 --dc=eu rdc" diff --git a/best_practice/mobile_web/Pipfile.lock b/best_practice/mobile_web/Pipfile.lock index 95b7681..c66bb2a 100644 --- a/best_practice/mobile_web/Pipfile.lock +++ b/best_practice/mobile_web/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "30f2a700bad38a95a01d841355fdf99c4dfcac418571b1046777322f4235c447" + "sha256": "7511719df528fb26eae7a2a937aec333569e353dbe036496172e873a19ad30c5" }, "pipfile-spec": 6, "requires": {}, @@ -121,6 +121,15 @@ "markers": "python_version >= '3.10'", "version": "==9.1.1" }, + "pytest-rerunfailures": { + "hashes": [ + "sha256:6956ddfb65ca1d07e7e3d99e2c5359d82300f4cb062e6049563bd2c106f72d5c", + "sha256:edf1886209c2b7dafe35b5bf1708d6ec40ccf6c6b357f0f02807efcec0204c99" + ], + "index": "pypi", + "markers": "python_version >= '3.10'", + "version": "==16.7" + }, "pytest-xdist": { "hashes": [ "sha256:202ca578cfeb7370784a8c33d6d05bc6e13b4f25b5053c30a152269fd10f0b88",