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
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
# - { name: onchain_boost_receive_widgets, grep: "@onchain|@boost|@receive|@widgets" }
# - { name: settings, grep: "@settings" }
# - { name: security, grep: "@security" }
- { name: e2e, grep: '@lnurl|@lightning|@backup|@onboarding|@onchain_1|@onchain_2|@numberpad|@widgets|@boost|@receive|@settings|@security' }
- { name: e2e, grep: '@send|@lnurl|@lightning|@backup|@onboarding|@onchain_1|@onchain_2|@numberpad|@widgets|@boost|@receive|@settings|@security' }

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

Expand Down
3 changes: 2 additions & 1 deletion Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ struct QuickpaySettings: View {
VStack(alignment: .leading, spacing: 0) {
SettingsListLabel(
title: t("settings__quickpay__settings__toggle"),
toggle: $settings.enableQuickpay
toggle: $settings.enableQuickpay,
testIdentifier: "QuickpayToggle"
)

BodyMText(
Expand Down
8 changes: 8 additions & 0 deletions Bitkit/Views/Wallets/Send/SendAmountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ struct SendAmountView: View {
app.scannedOnchainInvoice != nil && app.scannedLightningInvoice != nil
}

private var assetButtonTestIdentifier: String {
if canSwitchWallet {
return "switch"
}
return app.selectedWalletToPayFrom == .lightning ? "spending" : "savings"
}

/// The amount to display in the available balance section
/// For onchain transactions, this shows the max sendable amount (balance minus fees)
/// For lightning transactions, this shows the max sendable lightning amount minus routing fees
Expand Down Expand Up @@ -92,6 +99,7 @@ struct SendAmountView: View {
app.selectedWalletToPayFrom.toggle()
}
}
.accessibilityIdentifier("AssetButton-\(assetButtonTestIdentifier)")

NumberPadActionButton(
text: currency.primaryDisplay == .bitcoin ? "Bitcoin" : currency.selectedCurrency,
Expand Down
Loading