Skip to content

Commit a8557d0

Browse files
Merge pull request #116 from mxenabled/wes/maestroE2ETests
Wes/maestro e2 e tests
2 parents 9b1457a + 28f1e22 commit a8557d0

File tree

8 files changed

+50
-7
lines changed

8 files changed

+50
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
## [2.0.1]
17+
18+
### Added
19+
20+
- Local E2E testing via maestro
21+
1622
## [2.0.0]
1723

1824
### Changed

E2E_TESTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# E2E Testing
2+
3+
We use Maestro for E2E testing.
4+
5+
## Local setup
6+
7+
### 1. [Install maestro](https://docs.maestro.dev/getting-started/installing-maestro)
8+
9+
### 2. Run an E2E friendly version of the app
10+
11+
```
12+
# Run from the example folder
13+
npm run android:e2e
14+
# Or
15+
npm run ios:e2e
16+
```
17+
18+
### 3. Run the E2E tests
19+
20+
```
21+
# Run from the example folder
22+
npm run e2e
23+
```

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ documentation][sdk_docs] to get started.
1010
[Contributiong](./CONTRIBUTING.md)
1111

1212
[Development](./DEVELOPMENT.md)
13+
14+
[E2E Testing](./E2E_TESTING.md)

example/app.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"userInterfaceStyle": "automatic",
1010
"newArchEnabled": true,
1111
"ios": {
12-
"supportsTablet": true
12+
"supportsTablet": true,
13+
"bundleIdentifier": "com.anonymous.example"
1314
},
1415
"android": {
1516
"adaptiveIcon": {
@@ -19,7 +20,8 @@
1920
"monochromeImage": "./assets/images/android-icon-monochrome.png"
2021
},
2122
"edgeToEdgeEnabled": true,
22-
"predictiveBackGestureEnabled": false
23+
"predictiveBackGestureEnabled": false,
24+
"package": "com.anonymous.example"
2325
},
2426
"web": {
2527
"output": "static",

example/maestro/connectWidget.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appId: com.anonymous.example
2+
---
3+
- launchApp
4+
- tapOn: "Connect"
5+
- assertVisible: "Select your institution"
6+
- tapOn: ".*MX Bank.*"
7+
- assertVisible: "Enter your credentials"

example/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"version": "1.0.0",
55
"scripts": {
66
"start": "expo start",
7-
"android": "expo start --android",
8-
"ios": "expo start --ios",
7+
"android": "expo start:android",
8+
"android:e2e": "expo run:android",
9+
"e2e": "maestro test ./maestro/",
10+
"ios": "expo start:ios",
11+
"ios:e2e": "expo run:ios",
912
"lint": "expo lint"
1013
},
1114
"dependencies": {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mxenabled/react-native-widget-sdk",
33
"description": "MX React Native Widget SDK",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)