diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index a5783d7b..9ea7e30c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -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 }} diff --git a/Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift b/Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift index a375252b..d19182eb 100644 --- a/Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift +++ b/Bitkit/Views/Settings/Quickpay/QuickpaySettings.swift @@ -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( diff --git a/Bitkit/Views/Wallets/Send/SendAmountView.swift b/Bitkit/Views/Wallets/Send/SendAmountView.swift index 54db3ff2..ab3d1a40 100644 --- a/Bitkit/Views/Wallets/Send/SendAmountView.swift +++ b/Bitkit/Views/Wallets/Send/SendAmountView.swift @@ -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 @@ -92,6 +99,7 @@ struct SendAmountView: View { app.selectedWalletToPayFrom.toggle() } } + .accessibilityIdentifier("AssetButton-\(assetButtonTestIdentifier)") NumberPadActionButton( text: currency.primaryDisplay == .bitcoin ? "Bitcoin" : currency.selectedCurrency,