Skip to content

Commit 0e43203

Browse files
Merge pull request #118 from mxenabled/wes/moreE2ETests
Wes/more e2 e tests
2 parents a8557d0 + 99cb0f9 commit 0e43203

11 files changed

Lines changed: 172 additions & 64 deletions

.mx-sso-proxy-rc.example.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
# For the E2E tests to pass a client needs to be setup in a certain way to ensure the correct widgets are returned
2+
# This test client should be used when running e2e tests: https://batcave.int.internal.mx/clients/CLT-9c423da1-3b85-4218-bb4c-a66ab8a9c133
3+
# The clientId and apiKey can be retrieved from the client page in batcave
4+
# Other users can be used, but the example user is known to work
5+
16
apiKey: ""
27
apiHost: "https://int-api.mx.com"
38
clientId: ""
4-
defaultUserGuid: ""
9+
defaultUserGuid: "USR-e7353471-51d7-447f-b621-db255148a10c"

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.2]
17+
18+
### Added
19+
20+
- More E2E tests
21+
1622
## [2.0.1]
1723

1824
### Added

example/maestro/budgetsWidget.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This test assumes that a budget has been generated for the specific user
2+
3+
appId: com.anonymous.example
4+
---
5+
- retry:
6+
maxRetries: 2
7+
commands:
8+
- launchApp
9+
- tapOn: "Budgets"
10+
- assertVisible: "$.*"
11+
- scrollUntilVisible:
12+
element: "Budget Categories"

example/maestro/connectWidget.yaml

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

example/maestro/goalsWidget.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
appId: com.anonymous.example
2+
---
3+
- retry:
4+
maxRetries: 2
5+
commands:
6+
- launchApp
7+
- tapOn: "Goals"
8+
- assertVisible: "Goals"
9+
- assertVisible: "Saving.*"
10+
- assertVisible: "Debt.*"
11+
- assertVisible: "Retirement.*"

example/maestro/pulseWidget.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
appId: com.anonymous.example
2+
---
3+
- retry:
4+
maxRetries: 2
5+
commands:
6+
- launchApp
7+
- tapOn: "Pulse"
8+
- assertVisible: ".*see what insights we have for you.*"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
appId: com.anonymous.example
2+
---
3+
- retry:
4+
maxRetries: 2
5+
commands:
6+
- launchApp
7+
- tapOn: "Spending"
8+
- assertVisible: "Spending.*"
9+
- assertVisible: "Income.*"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
appId: com.anonymous.example
2+
---
3+
- retry:
4+
maxRetries: 2
5+
commands:
6+
- launchApp
7+
- tapOn: "Transactions"
8+
- assertVisible: "Transfer.*"

example/package-lock.json

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

package-lock.json

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

0 commit comments

Comments
 (0)