Skip to content

Commit 2581b19

Browse files
authored
Merge pull request #279 from synonymdev/test/send2
Test/send
2 parents 8543137 + 45b2323 commit 2581b19

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
# - { name: onchain_boost_receive_widgets, grep: "@onchain|@boost|@receive|@widgets" }
109109
# - { name: settings, grep: "@settings" }
110110
# - { name: security, grep: "@security" }
111-
- { name: e2e, grep: '@lnurl|@lightning|@backup|@onboarding|@onchain_1|@onchain_2|@numberpad|@widgets|@boost|@receive|@settings|@security' }
111+
- { name: e2e, grep: '@send|@lnurl|@lightning|@backup|@onboarding|@onchain_1|@onchain_2|@numberpad|@widgets|@boost|@receive|@settings|@security' }
112112

113113
name: e2e-tests - ${{ matrix.shard.name }}
114114

Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ struct QuickpaySettings: View {
1515
VStack(alignment: .leading, spacing: 0) {
1616
SettingsListLabel(
1717
title: t("settings__quickpay__settings__toggle"),
18-
toggle: $settings.enableQuickpay
18+
toggle: $settings.enableQuickpay,
19+
testIdentifier: "QuickpayToggle"
1920
)
2021

2122
BodyMText(

Bitkit/Views/Wallets/Send/SendAmountView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)