forked from stripe/stripe-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [skip ci] Start PR * Adds tests. * Updates for auto selection. * Updates for auto selection. * Excludes non edge tests. * Remove edge from NME merchant. * Remove edge from NME merchant. * Removes tag mutation. * Updates condition. * Run the check just if maestro tags includes edge.
- Loading branch information
1 parent
3524348
commit 1109395
Showing
4 changed files
with
112 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
## | ||
## This tests Networks a manually entered account | ||
## and reuses the same account on the bank account token flow. | ||
## | ||
appId: com.stripe.android.financialconnections.example | ||
tags: | ||
- all | ||
- testmode-token | ||
--- | ||
- startRecording: ${'/tmp/test_results/testmode-nme-' + new Date().getTime()} | ||
- clearState | ||
- openLink: stripeconnectionsexample://playground?experience=FinancialConnections&flow=Token&financial_connections_override_native=native&merchant=networking&financial_connections_test_mode=true&permissions=payment_method&financial_connections_confirm_intent=true | ||
- tapOn: | ||
id: "Customer email setting" | ||
- inputRandomEmail | ||
- hideKeyboard | ||
- tapOn: | ||
id: "connect_accounts" | ||
# Wait until the consent button is visible | ||
- extendedWaitUntil: | ||
visible: | ||
id: "consent_cta" | ||
timeout: 30000 | ||
# Navigate to manual entry | ||
- tapOn: | ||
# Maestro does not yet support tapping on annotated strings. | ||
# https://github.com/mobile-dev-inc/maestro/issues/389 | ||
point: "50%,93%" | ||
- tapOn: "Use test account" | ||
## ENTER PHONE FOR NEW NETWORKED USER | ||
- waitForAnimationToEnd | ||
- scrollUntilVisible: | ||
element: | ||
text: ".*555.*" # wait for placeholder to be visible | ||
- inputText: "6223115555" | ||
- tapOn: "Save with Link" | ||
# CONFIRM AND COMPLETE | ||
- tapOn: | ||
id: "done_button" | ||
- assertVisible: ".*Completed!.*" | ||
############################################ | ||
## REUSE NEWLY CREATED NME ACCOUNT | ||
############################################ | ||
- tapOn: | ||
id: "connect_accounts" | ||
# Common: web AuthFlow - connect OAuth institution | ||
- extendedWaitUntil: | ||
visible: | ||
id: "consent_cta" | ||
timeout: 30000 | ||
- tapOn: | ||
id: "consent_cta" | ||
## LOGIN TO NETWORKING | ||
- tapOn: | ||
id: "existing_email-button" | ||
## 2FA | ||
- assertVisible: | ||
id: "OTP-0" | ||
- inputText: "111111" | ||
## SELECT NETWORKED ACCOUNT | ||
# First institution should be auto selected. | ||
- tapOn: "Connect account" | ||
# CONFIRM AND COMPLETE | ||
- tapOn: | ||
id: "done_button" | ||
- scrollUntilVisible: | ||
element: | ||
text: ".*Completed.*" |
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