Skip to content

Commit

Permalink
test: add testId hooks for E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catch-21 committed Dec 23, 2024
1 parent 71aa952 commit a25af77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/screens/Wallets/Receive/ReceiveAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const ReceiveAmount = ({
{t('minimum')}
</Caption13Up>
<Money
testID="Minimum"
sats={minimumAmount}
size="bodySSB"
symbol={true}
Expand Down
7 changes: 5 additions & 2 deletions src/screens/Wallets/Receive/ReceiveConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const FeeInfo = ({

return (
<>
<BodyM style={styles.text} color="secondary">
<BodyM
testID="ReceiveReviewLspFeeText"
style={styles.text}
color="secondary">
<Trans
t={t}
i18nKey={
Expand Down Expand Up @@ -172,7 +175,7 @@ const ReceiveConnect = ({
<GradientView style={styles.container}>
<BottomSheetNavigationHeader title={t('receive_bitcoin')} />
<View style={styles.content}>
<AmountToggle amount={amount} />
<AmountToggle testID="Review" amount={amount} />

{!isLoading && feeEstimate ? (
<FeeInfo fees={feeEstimate} isAdditional={isAdditional} />
Expand Down
3 changes: 2 additions & 1 deletion src/screens/Wallets/Receive/ReceiveQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ const ReceiveQR = ({
style={styles.switchRow}
color="purple"
isEnabled={enableInstant}
onPress={onToggleInstant}>
onPress={onToggleInstant}
testID="ReceiveInstantSwitch">
{!enableInstant && <ArrowLNFunds color="secondary" />}
<BodyM>{t('receive_spending')}</BodyM>
</SwitchRow>
Expand Down

0 comments on commit a25af77

Please sign in to comment.