Skip to content

Commit

Permalink
e2e: test on iOS 15 (#559)
Browse files Browse the repository at this point in the history
## 📜 Description

Run e2e tests on iOS 15 too.

## 💡 Motivation and Context

Initially I thought that it would be an overkill, but recently I fixed a
bug and introduced a regression to iOS 15.

I want to catch such regressions as soon as possible, so in this PR I'm
adding a job that will run e2e tests on iOS 15.

## 📢 Changelog

### E2E

- add iOS 15 config;

### CI

- run tests on iOS 15;

## 🤔 How Has This Been Tested?

Tested on CI 😊 

## 📝 Checklist

- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
  • Loading branch information
kirillzyusko authored Aug 21, 2024
1 parent 164eb79 commit 1c58299
Show file tree
Hide file tree
Showing 41 changed files with 21 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ios-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
path: example/ios/build/Build/Products/Release-iphonesimulator/KeyboardControllerExample.app/**
e2e-test:
name: ⚙️ Automated test cases (iOS-${{ matrix.devices.ios }})
runs-on: macos-14
runs-on: macos-${{ matrix.devices.macos }}
timeout-minutes: 60
env:
WORKING_DIRECTORY: example
Expand All @@ -98,9 +98,10 @@ jobs:
matrix:
devices:
[
{ ios: 16, xcode: "14.3.1" },
{ ios: 17, xcode: "15.4" },
{ ios: 18, xcode: "16-beta" },
{ ios: 15, xcode: "13.4.1", macos: 12 },
{ ios: 16, xcode: "14.3.1", macos: 14 },
{ ios: 17, xcode: "15.4", macos: 14 },
{ ios: 18, xcode: "16-beta", macos: 14 },
]
needs: build
steps:
Expand Down
15 changes: 15 additions & 0 deletions e2e/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ module.exports = {
},
},
devices: {
simulator15: {
type: "ios.simulator",
device: {
type: "iPhone 13 Pro",
os: "iOS 15.5",
},
},
simulator16: {
type: "ios.simulator",
device: {
Expand Down Expand Up @@ -86,6 +93,14 @@ module.exports = {
},
},
configurations: {
"example.ios.sim-15.debug": {
device: "simulator15",
app: "example.ios.debug",
},
"example.ios.sim-15.release": {
device: "simulator15",
app: "example.ios.release",
},
"example.ios.sim-16.debug": {
device: "simulator16",
app: "example.ios.debug",
Expand Down
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.
1 change: 1 addition & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"test-example:android-28": "detox test --configuration example.android.emu-28.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test-example:android-31": "detox test --configuration example.android.emu-31.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"build-example:ios": "detox build --configuration example.ios.sim-17.release",
"test-example:ios-15": "detox test --configuration example.ios.sim-15.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"test-example:ios-16": "detox test --configuration example.ios.sim-16.release --loglevel verbose --take-screenshots failing --record-videos failing --retries 2",
"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",
Expand Down

0 comments on commit 1c58299

Please sign in to comment.