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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [2.0.1]

### Added

- Local E2E testing via maestro

## [2.0.0]

### Changed
Expand Down
23 changes: 23 additions & 0 deletions E2E_TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# E2E Testing

We use Maestro for E2E testing.

## Local setup

### 1. [Install maestro](https://docs.maestro.dev/getting-started/installing-maestro)

### 2. Run an E2E friendly version of the app

```
# Run from the example folder
npm run android:e2e
# Or
npm run ios:e2e
```

### 3. Run the E2E tests

```
# Run from the example folder
npm run e2e
```
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ documentation][sdk_docs] to get started.
[Contributiong](./CONTRIBUTING.md)

[Development](./DEVELOPMENT.md)

[E2E Testing](./E2E_TESTING.md)
6 changes: 4 additions & 2 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.anonymous.example"
},
"android": {
"adaptiveIcon": {
Expand All @@ -19,7 +20,8 @@
"monochromeImage": "./assets/images/android-icon-monochrome.png"
},
"edgeToEdgeEnabled": true,
"predictiveBackGestureEnabled": false
"predictiveBackGestureEnabled": false,
"package": "com.anonymous.example"
},
"web": {
"output": "static",
Expand Down
7 changes: 7 additions & 0 deletions example/maestro/connectWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appId: com.anonymous.example
---
- launchApp
- tapOn: "Connect"
- assertVisible: "Select your institution"
- tapOn: ".*MX Bank.*"
- assertVisible: "Enter your credentials"
7 changes: 5 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"version": "1.0.0",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"android": "expo start:android",
"android:e2e": "expo run:android",
"e2e": "maestro test ./maestro/",
"ios": "expo start:ios",
"ios:e2e": "expo run:ios",
"lint": "expo lint"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mxenabled/react-native-widget-sdk",
"description": "MX React Native Widget SDK",
"version": "2.0.0",
"version": "2.0.1",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down