From 328b8f1387e89e6d2e507feab9947cd6a479501a Mon Sep 17 00:00:00 2001 From: James <74595920+catch-21@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:04:31 +0000 Subject: [PATCH] test: add testId hooks for E2E tests (#2411) * test: add testId hooks for E2E tests --- src/screens/Wallets/Receive/ReceiveAmount.tsx | 1 + src/screens/Wallets/Receive/ReceiveConnect.tsx | 7 +++++-- src/screens/Wallets/Receive/ReceiveQR.tsx | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/screens/Wallets/Receive/ReceiveAmount.tsx b/src/screens/Wallets/Receive/ReceiveAmount.tsx index 0bb6927de..3cccdabb5 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')}