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
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ private fun PaymentMethodButton(
} else {
AppTextStyles.CaptionM
},
icon = if (uiState.canSwitchFundingSource) R.drawable.ic_transfer else null,
outlined = true,
trailingIcon = if (uiState.canSwitchFundingSource) R.drawable.ic_chevron_down else null,
onClick = { expanded = true },
enabled = uiState.fundingOptions.isNotEmpty(),
isLoading = uiState.isFundingSourceLoading,
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_chevron_down.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<path
android:pathData="M6.293,11.293a1,1 0,0 1,1.414 0L16,19.586l8.293,-8.293a1,1 0,0 1,1.414 1.414l-9,9a1,1 0,0 1,-1.414 0l-9,-9a1,1 0,0 1,0 -1.414"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
</vector>
1 change: 1 addition & 0 deletions changelog.d/next/1612.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The wallet picker on the send amount screen now shows a dropdown arrow instead of the switch icon.
20 changes: 20 additions & 0 deletions journeys/send/funding-source-dropdown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<journey name="funding source dropdown">
<description>
Verifies that the Send Amount wallet picker opens as a dropdown: an outlined button with the
selected wallet name followed by a downward chevron. Preconditions: an onboarded regtest wallet
with confirmed Savings funds and a usable Spending channel, a fresh zero-amount unified BIP21 URI
(on-chain address plus Lightning invoice) from another wallet, and a fresh on-chain address
from another wallet. Close each send without paying.
</description>
<actions>
<action>Open the zero-amount unified BIP21 URI with a bitcoin: deep link</action>
<action>Verify Send Amount shows the funding source button (testTag "AssetButton-switch") as an outlined button with the selected wallet name and a downward chevron after it, and no switch arrows before the name</action>
<action>Tap the funding source button and verify the dropdown (testTag "SendFundingSources") lists Savings and Spending with their balances and a check next to the selected wallet</action>
<action>Select the wallet that is not checked and verify the button shows its name in its color, orange for Savings and purple for Spending, still outlined with the downward chevron</action>
<action>Tap the funding source button again and verify the check moved to the newly selected wallet; dismiss the dropdown</action>
<action>Close the send sheet without paying</action>
<action>Open the on-chain address with a bitcoin: deep link and verify the funding source button shows Savings outlined in orange with no chevron or other icon</action>
<action>Tap the funding source button and verify the dropdown (testTag "SendFundingSources") opens with Savings checked and Spending dimmed with its balance; tap Spending and verify the selection does not change</action>
<action>Close the send sheet without paying</action>
</actions>
</journey>
Loading