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
7 changes: 6 additions & 1 deletion .mx-sso-proxy-rc.example.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# For the E2E tests to pass a client needs to be setup in a certain way to ensure the correct widgets are returned
# This test client should be used when running e2e tests: https://batcave.int.internal.mx/clients/CLT-9c423da1-3b85-4218-bb4c-a66ab8a9c133
# The clientId and apiKey can be retrieved from the client page in batcave
# Other users can be used, but the example user is known to work

apiKey: ""
apiHost: "https://int-api.mx.com"
clientId: ""
defaultUserGuid: ""
defaultUserGuid: "USR-e7353471-51d7-447f-b621-db255148a10c"
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.2]

### Added

- More E2E tests

## [2.0.1]

### Added
Expand Down
12 changes: 12 additions & 0 deletions example/maestro/budgetsWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This test assumes that a budget has been generated for the specific user

appId: com.anonymous.example
---
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Budgets"
- assertVisible: "$.*"
- scrollUntilVisible:
element: "Budget Categories"
11 changes: 6 additions & 5 deletions example/maestro/connectWidget.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
appId: com.anonymous.example
---
- launchApp
- tapOn: "Connect"
- assertVisible: "Select your institution"
- tapOn: ".*MX Bank.*"
- assertVisible: "Enter your credentials"
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Connect"
- assertVisible: "Select your institution"
11 changes: 11 additions & 0 deletions example/maestro/goalsWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appId: com.anonymous.example
---
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Goals"
- assertVisible: "Goals"
- assertVisible: "Saving.*"
- assertVisible: "Debt.*"
- assertVisible: "Retirement.*"
8 changes: 8 additions & 0 deletions example/maestro/pulseWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
appId: com.anonymous.example
---
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Pulse"
- assertVisible: ".*see what insights we have for you.*"
9 changes: 9 additions & 0 deletions example/maestro/spendingWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
appId: com.anonymous.example
---
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Spending"
- assertVisible: "Spending.*"
- assertVisible: "Income.*"
8 changes: 8 additions & 0 deletions example/maestro/transactionsWidget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
appId: com.anonymous.example
---
- retry:
maxRetries: 2
commands:
- launchApp
- tapOn: "Transactions"
- assertVisible: "Transfer.*"
35 changes: 18 additions & 17 deletions example/package-lock.json

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

127 changes: 87 additions & 40 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.1",
"version": "2.0.2",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down