Skip to content

Commit 328b8f1

Browse files
authored
test: add testId hooks for E2E tests (#2411)
* test: add testId hooks for E2E tests
1 parent 71aa952 commit 328b8f1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/screens/Wallets/Receive/ReceiveAmount.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const ReceiveAmount = ({
119119
{t('minimum')}
120120
</Caption13Up>
121121
<Money
122+
testID="ReceiveAmountMinimum"
122123
sats={minimumAmount}
123124
size="bodySSB"
124125
symbol={true}

src/screens/Wallets/Receive/ReceiveConnect.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ const FeeInfo = ({
7878

7979
return (
8080
<>
81-
<BodyM style={styles.text} color="secondary">
81+
<BodyM
82+
testID="ReceiveConnectLspFeeText"
83+
style={styles.text}
84+
color="secondary">
8285
<Trans
8386
t={t}
8487
i18nKey={
@@ -172,7 +175,7 @@ const ReceiveConnect = ({
172175
<GradientView style={styles.container}>
173176
<BottomSheetNavigationHeader title={t('receive_bitcoin')} />
174177
<View style={styles.content}>
175-
<AmountToggle amount={amount} />
178+
<AmountToggle testID="ReceiveConnectAmount" amount={amount} />
176179

177180
{!isLoading && feeEstimate ? (
178181
<FeeInfo fees={feeEstimate} isAdditional={isAdditional} />

src/screens/Wallets/Receive/ReceiveQR.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ const ReceiveQR = ({
630630
style={styles.switchRow}
631631
color="purple"
632632
isEnabled={enableInstant}
633-
onPress={onToggleInstant}>
633+
onPress={onToggleInstant}
634+
testID="ReceiveInstantSwitch">
634635
{!enableInstant && <ArrowLNFunds color="secondary" />}
635636
<BodyM>{t('receive_spending')}</BodyM>
636637
</SwitchRow>

0 commit comments

Comments
 (0)