Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions .github/workflows/ios-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ on:
- "e2e/**"
- "src/**"

concurrency:
group: ios-e2e-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: πŸ—οΈ Build E2E ipa
runs-on: macos-15
name: πŸ—οΈ Build E2E ipa (Xcode ${{ matrix.config.xcode }})
runs-on: macos-${{ matrix.config.macos }}
timeout-minutes: 60
env:
WORKING_DIRECTORY: example
concurrency:
group: ios-e2e-${{ github.ref }}
cancel-in-progress: true
strategy:
matrix:
config: [{ xcode: "16.4", macos: 15 }, { xcode: "26.1", macos: 26 }]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -39,7 +43,7 @@ jobs:
cache: "yarn"
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.4"
xcode-version: ${{ matrix.config.xcode }}
- name: Get Xcode version
run: xcodebuild -version
- name: Save yarn cache directory path
Expand All @@ -64,7 +68,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: 1.5G
key: ${{ runner.os }}-ccache-e2e-ios
key: ${{ runner.os }}-xcode-${{ matrix.config.xcode }}-ccache-e2e-ios
create-symlink: true
- name: Setup ccache behavior
run: |
Expand All @@ -79,9 +83,9 @@ jobs:
example/ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
key: ${{ runner.os }}-xcode-${{ matrix.config.xcode }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
${{ runner.os }}-xcode-${{ matrix.config.xcode }}-pods-
- name: Install pods
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: export USE_CCACHE=1 && pod install || pod update --repo-update
Expand All @@ -90,17 +94,14 @@ jobs:
run: yarn build-example:ios
- uses: actions/upload-artifact@v4
with:
name: ios-e2e-ipa
name: ios-e2e-ipa-xcode${{ matrix.config.xcode }}
path: example/ios/build/Build/Products/Release-iphonesimulator/KeyboardControllerExample.app/**
e2e-test:
name: βš™οΈ Automated test cases (iOS-${{ matrix.devices.ios }})
name: βš™οΈ Automated test cases (iOS-${{ matrix.devices.ios }}, XCode-${{ matrix.devices.xcode }})
runs-on: macos-${{ matrix.devices.macos }}
timeout-minutes: 90
env:
WORKING_DIRECTORY: example
concurrency:
group: ios-e2e-${{ matrix.devices.ios }}-${{ github.ref }}
cancel-in-progress: true
strategy:
matrix:
devices:
Expand Down Expand Up @@ -143,14 +144,21 @@ jobs:
iphone: "iPhone 17 Pro",
os: "26.0",
},
{
ios: "26e",
xcode: "26.1",
macos: 26,
iphone: "iPhone 16e",
os: "26.1",
},
]
needs: build
steps:
- uses: actions/checkout@v4
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: ios-e2e-ipa
name: ios-e2e-ipa-xcode${{ matrix.devices.xcode }}
path: example/ios/build/Build/Products/Release-iphonesimulator/KeyboardControllerExample.app/
- uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down
15 changes: 15 additions & 0 deletions e2e/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ module.exports = {
os: "iOS 26.0",
},
},
simulator26e: {
type: "ios.simulator",
device: {
type: "iPhone 16e",
os: "iOS 26.1",
},
},
attached: {
type: "android.attached",
device: {
Expand Down Expand Up @@ -137,6 +144,14 @@ module.exports = {
device: "simulator26",
app: "example.ios.release",
},
"example.ios.sim-26e.debug": {
device: "simulator26e",
app: "example.ios.debug",
},
"example.ios.sim-26e.release": {
device: "simulator26e",
app: "example.ios.release",
},
"example.android.att.debug": {
device: "attached",
app: "example.android.debug",
Expand Down
6 changes: 4 additions & 2 deletions e2e/kit/015-keyboard-extender.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ describe("`KeyboardExtender` specification", () => {
await waitForElementByText("20 dollars");
await tapItemAtIndex("OK");
await waitForExpect(async () => {
await expectBitmapsToBeEqual("KeyboardExtenderIsAttached");
// round corners in the bottom keyboard on iOS 26 when taking second screenshot
await expectBitmapsToBeEqual("KeyboardExtenderIsAttached", 0.35);
});
});

Expand All @@ -44,7 +45,8 @@ describe("`KeyboardExtender` specification", () => {
it("should appear again when enabled", async () => {
await waitAndTap("donation_amount");
await waitForExpect(async () => {
await expectBitmapsToBeEqual("KeyboardExtenderIsAttached");
// round corners in the bottom keyboard on iOS 26 when taking second screenshot
await expectBitmapsToBeEqual("KeyboardExtenderIsAttached", 0.35);
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions e2e/kit/helpers/env/devicePreferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const DEVICE_PREFERENCES: Record<string, Preference> = {
width: 393,
height: 852,
},
"iPhone 16e": {
emojiButtonCoordinates: { x: 40, y: 830 },
width: 390,
height: 844,
},
"iPhone 16 Pro": {
emojiButtonCoordinates: { x: 40, y: 830 },
width: 393,
Expand Down
1 change: 1 addition & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test-example:ios-17": "detox test --configuration example.ios.sim-17.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test-example:ios-18": "detox test --configuration example.ios.sim-18.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test-example:ios-26": "detox test --configuration example.ios.sim-26.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test-example:ios-26e": "detox test --configuration example.ios.sim-26e.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test": "echo \"Error: no test specified\" && exit 1",
"detox-clean": "detox clean-framework-cache && detox build-framework-cache",
"postinstall": "patch-package"
Expand Down
Loading