From a25af77fdcfcde41bcfa96dc12812d03a63ab83d Mon Sep 17 00:00:00 2001 From: James Browning Date: Sat, 21 Dec 2024 21:40:38 +0000 Subject: [PATCH 1/2] 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..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')} From 15a233c8dfd2e854ef603f9214d2c1bb4da65b5b Mon Sep 17 00:00:00 2001 From: James Browning Date: Fri, 27 Dec 2024 12:23:34 +0000 Subject: [PATCH 2/2] test: change testIds inline with review suggestion --- src/screens/Wallets/Receive/ReceiveAmount.tsx | 2 +- src/screens/Wallets/Receive/ReceiveConnect.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/Wallets/Receive/ReceiveAmount.tsx b/src/screens/Wallets/Receive/ReceiveAmount.tsx index a2e721846..3cccdabb5 100644 --- a/src/screens/Wallets/Receive/ReceiveAmount.tsx +++ b/src/screens/Wallets/Receive/ReceiveAmount.tsx @@ -119,7 +119,7 @@ const ReceiveAmount = ({ {t('minimum')} - + {!isLoading && feeEstimate ? (