File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Bitkit/Views/Wallets/Send Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ struct SendAmountView: View {
2020 app. scannedOnchainInvoice != nil && app. scannedLightningInvoice != nil
2121 }
2222
23+ private var assetButtonTestIdentifier : String {
24+ if canSwitchWallet {
25+ return " switch "
26+ }
27+ return app. selectedWalletToPayFrom == . lightning ? " spending " : " savings "
28+ }
29+
2330 /// The amount to display in the available balance section
2431 /// For onchain transactions, this shows the max sendable amount (balance minus fees)
2532 /// For lightning transactions, this shows the max sendable lightning amount minus routing fees
@@ -92,6 +99,7 @@ struct SendAmountView: View {
9299 app. selectedWalletToPayFrom. toggle ( )
93100 }
94101 }
102+ . accessibilityIdentifier ( " AssetButton- \( assetButtonTestIdentifier) " )
95103
96104 NumberPadActionButton (
97105 text: currency. primaryDisplay == . bitcoin ? " Bitcoin " : currency. selectedCurrency,
You can’t perform that action at this time.
0 commit comments