Skip to content

Commit 3979157

Browse files
authored
fix: iOS e2e tests (#1301)
## 📜 Description Fixed iOS e2e tests. ## 💡 Motivation and Context The pipeline got broken here: #797 iOS 18 tests were failing because of 1 asset <- just updated one screenshot iOS 26 + XCode 16 were failing because of 2 assets <- things went harder here On `iOS 26 + XCode 16` I used old iOS 26.0 version, which resulted in a wrong behavior. It was hard to fix it in the lib codebase, so I just decided to switch to a new iOS version. For that I had to update all snapshots. ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### E2E - updated iOS e2e assets; - use iOS 26.2 instead of iOS 26.0. ## 🤔 How Has This Been Tested? Tested manually via e2e run on a failed exam. ## 📸 Screenshots (if appropriate): <img width="858" height="395" alt="image" src="https://github.com/user-attachments/assets/58850c15-2bc4-4d6a-9159-97eafce64a25" /> ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
1 parent 423dbef commit 3979157

39 files changed

Lines changed: 2 additions & 2 deletions

.github/workflows/ios-e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
echo 'matrix={"devices": [{"ios": 15, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "15.5", "iphone": "iPhone 13 Pro", "os": "15.5"}, {"ios": 17, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "17.5", "iphone": "iPhone 15 Pro", "os": "17.5"}, {"ios": "26e", artifact: "26.1", "xcode": "26.1", "macos": 26, "iphone": "iPhone 16e", "os": "26.1"}]}' >> $GITHUB_OUTPUT
118118
else
119119
# Full set for main
120-
echo 'matrix={"devices": [{"ios": 15, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "15.5", "iphone": "iPhone 13 Pro", "os": "15.5"}, {"ios": 16, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "16.4", "iphone": "iPhone 14 Pro", "os": "16.4"}, {"ios": 17, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "17.5", "iphone": "iPhone 15 Pro", "os": "17.5"}, {"ios": 18, artifact: "16.4", "xcode": "16.4", "macos": 15, "iphone": "iPhone 16 Pro", "os": "18.5"}, {"ios": 26, artifact: "16.4", "xcode": "26.0", "macos": 26, "iphone": "iPhone 17 Pro", "os": "26.0"}, {"ios": "26e", artifact: "26.1", "xcode": "26.1", "macos": 26, "iphone": "iPhone 16e", "os": "26.1"}]}' >> $GITHUB_OUTPUT
120+
echo 'matrix={"devices": [{"ios": 15, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "15.5", "iphone": "iPhone 13 Pro", "os": "15.5"}, {"ios": 16, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "16.4", "iphone": "iPhone 14 Pro", "os": "16.4"}, {"ios": 17, artifact: "16.4", "xcode": "16.4", "macos": 15, "runtime": "17.5", "iphone": "iPhone 15 Pro", "os": "17.5"}, {"ios": 18, artifact: "16.4", "xcode": "16.4", "macos": 15, "iphone": "iPhone 16 Pro", "os": "18.5"}, {"ios": 26, artifact: "16.4", "xcode": "26.0", "macos": 26, "iphone": "iPhone 17 Pro", "os": "26.2"}, {"ios": "26e", artifact: "26.1", "xcode": "26.1", "macos": 26, "iphone": "iPhone 16e", "os": "26.1"}]}' >> $GITHUB_OUTPUT
121121
fi
122122
e2e-test:
123123
name: ⚙️ Automated test cases (iOS-${{ matrix.devices.ios }}, XCode-${{ matrix.devices.artifact }})

e2e/.detoxrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
type: "ios.simulator",
7474
device: {
7575
type: "iPhone 17 Pro",
76-
os: "iOS 26.0",
76+
os: "iOS 26.2",
7777
},
7878
},
7979
simulator26e: {
-5 Bytes
Loading
-94 Bytes
Loading
81 Bytes
Loading
-119 Bytes
Loading
1018 Bytes
Loading
1.16 KB
Loading
47 Bytes
Loading
80 Bytes
Loading

0 commit comments

Comments
 (0)