-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FC] Add livetesting OAuth tests + some Maestro improvements (#7514)
* [skip ci] Start PR * Adds livemode tests. * Updates banks. * Updates bank check. * Adds test tag to search results. * Runs tests. * Updates recording names. * Adds retry policy to maestro tests * Tests * global install * Retries. * Test * Removes merger. * clones repo. * clones repo. * Adds prepare - conclude. * Adds prepare - conclude. * Updates script. * Fix button. * Test * Reverts test yaml.
- Loading branch information
1 parent
d3831c7
commit 4c5c732
Showing
11 changed files
with
173 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
appId: com.stripe.android.financialconnections.example | ||
tags: | ||
- all | ||
- livemode-data | ||
--- | ||
- startRecording: /tmp/test_results/livemode-data-finbank | ||
- openLink: stripeconnectionsexample://playground?flow=Data&financial_connections_override_native=native&merchant=live_testing | ||
- tapOn: | ||
id: "connect_accounts" | ||
# Wait until the consent button is visible | ||
- extendedWaitUntil: | ||
visible: | ||
id: "consent_cta" | ||
timeout: 30000 | ||
# Common: web AuthFlow - connect OAuth institution | ||
- tapOn: "Agree and continue" | ||
# SEARCH AND SELECT FINBANK INSTITUTION | ||
- tapOn: "Search" | ||
- inputText: "finbank" | ||
- tapOn: | ||
id: "search_result_0" | ||
####### Bypass Chrome on-boarding screen ####### | ||
- runFlow: | ||
file: ../common/subflow-skip-chrome-welcome.yaml | ||
# LOG IN WITH TEST FINBANK INSTITUTION | ||
- extendedWaitUntil: | ||
visible: | ||
text: "Image of FinBank logo" | ||
timeout: 30000 | ||
- tapOn: "Banking Userid " | ||
- inputText: "f_i_n" | ||
- tapOn: "Banking Password " | ||
- inputText: "b_a_n_k" | ||
- tapOn: "Submit" | ||
############################################### | ||
# SELECT ALL ACCOUNTS | ||
- extendedWaitUntil: | ||
visible: "Select all accounts" | ||
timeout: 60000 | ||
- tapOn: "Select all accounts" # select all accounts | ||
- tapOn: | ||
text: "Link accounts" | ||
retryTapIfNoChange: false | ||
# CONFIRM AND COMPLETE | ||
- assertVisible: ".*Success.*" | ||
- tapOn: "Done" | ||
- assertVisible: ".*Completed!.*" | ||
- assertVisible: ".*FinBank.*" | ||
- stopRecording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
appId: com.stripe.android.financialconnections.example | ||
tags: | ||
- all | ||
- livemode-data | ||
--- | ||
- startRecording: /tmp/test_results/livemode-data-mxbank | ||
- openLink: stripeconnectionsexample://playground?flow=Data&financial_connections_override_native=native&merchant=live_testing | ||
- tapOn: | ||
id: "connect_accounts" | ||
# Wait until the consent button is visible | ||
- extendedWaitUntil: | ||
visible: | ||
id: "consent_cta" | ||
timeout: 30000 | ||
# Common: web AuthFlow - connect OAuth institution | ||
- tapOn: "Agree and continue" | ||
# SEARCH AND SELECT FINBANK INSTITUTION | ||
- tapOn: "Search" | ||
- inputText: "mx" | ||
- tapOn: | ||
id: "search_result_1" | ||
- tapOn: "Continue" | ||
####### Bypass Chrome on-boarding screen ####### | ||
- runFlow: | ||
file: ../common/subflow-skip-chrome-welcome.yaml | ||
# LOG IN WITH TEST FINBANK INSTITUTION | ||
- tapOn: "Authorize" | ||
############################################### | ||
# SELECT ALL ACCOUNTS | ||
# - Mx bank skips account selection | ||
# CONFIRM AND COMPLETE | ||
- assertVisible: ".*Success.*" | ||
- tapOn: "Done" | ||
- assertVisible: ".*Completed!.*" | ||
- assertVisible: ".*MX Bank.*" | ||
- stopRecording |
8 changes: 4 additions & 4 deletions
8
maestro/financial-connections/Testmode-Data-TestOauthInstitution.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
maestro/financial-connections/Testmode-PaymentIntent-TestInstitution.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
maestro/financial-connections/Testmode-Token-ManualEntry.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.