From 3de36cce3a0debfa265507bc1e7cc0ba2c41a27b Mon Sep 17 00:00:00 2001 From: James Browning Date: Sat, 21 Dec 2024 21:40:38 +0000 Subject: [PATCH] test: add testId hoocks for E2E tests --- src/screens/Wallets/Receive/ReceiveAmount.tsx | 1 + src/screens/Wallets/Receive/ReceiveConnect.tsx | 7 +++++-- src/screens/Wallets/Receive/ReceiveQR.tsx | 3 ++- src/utils/lightning/index.ts | 3 +++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/screens/Wallets/Receive/ReceiveAmount.tsx b/src/screens/Wallets/Receive/ReceiveAmount.tsx index 0bb6927de..a2e721846 100644 --- a/src/screens/Wallets/Receive/ReceiveAmount.tsx +++ b/src/screens/Wallets/Receive/ReceiveAmount.tsx @@ -119,6 +119,7 @@ const ReceiveAmount = ({ {t('minimum')} - + - + {!isLoading && feeEstimate ? ( diff --git a/src/screens/Wallets/Receive/ReceiveQR.tsx b/src/screens/Wallets/Receive/ReceiveQR.tsx index 8453524e7..2ba63323c 100644 --- a/src/screens/Wallets/Receive/ReceiveQR.tsx +++ b/src/screens/Wallets/Receive/ReceiveQR.tsx @@ -630,7 +630,8 @@ const ReceiveQR = ({ style={styles.switchRow} color="purple" isEnabled={enableInstant} - onPress={onToggleInstant}> + onPress={onToggleInstant} + testID="ReceiveInstantSwitch"> {!enableInstant && } {t('receive_spending')} diff --git a/src/utils/lightning/index.ts b/src/utils/lightning/index.ts index 5292f0843..737743cca 100644 --- a/src/utils/lightning/index.ts +++ b/src/utils/lightning/index.ts @@ -34,6 +34,7 @@ import lm, { TPaymentReq, TTransactionData, TTransactionPosition, + ELdkLogLevels, TGetBestBlock, } from '@synonymdev/react-native-ldk'; @@ -462,6 +463,8 @@ export const setupLdk = async ({ return err(e); } + await ldk.setLogLevel(ELdkLogLevels.trace, true); + const lmStart = await lm.start({ account: account.value, getFees,