Skip to content

Commit

Permalink
test: add testId hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
catch-21 committed Dec 27, 2024
1 parent 328b8f1 commit b4b6a16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/LightningChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const LightningChannel = ({
</View>
)}
<View style={styles.amounts}>
<View style={styles.amount}>
<View testID="LightningChannelSpending" style={styles.amount}>
<UpArrow color={spendingAvailableColor} width={14} height={14} />
<Money
sats={localBalance}
Expand All @@ -70,7 +70,7 @@ const LightningChannel = ({
unit={EUnit.BTC}
/>
</View>
<View style={styles.amount}>
<View testID="LightningChannelReceiving" style={styles.amount}>
<DownArrow color={receivingAvailableColor} width={14} height={14} />
<Money
sats={remoteBalance}
Expand Down
8 changes: 4 additions & 4 deletions src/screens/Transfer/SpendingConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,27 @@ const SpendingConfirm = ({

<View style={styles.fees}>
<View style={styles.feesRow}>
<View style={styles.feeItem}>
<View testID="SpendingConfirmNetworkFee" style={styles.feeItem}>
<Caption13Up style={styles.feeItemLabel} color="secondary">
{t('spending_confirm.network_fee')}
</Caption13Up>
<Money sats={transactionFee} size="bodySSB" symbol={true} />
</View>
<View style={styles.feeItem}>
<View testID="SpendingConfirmLspFee" style={styles.feeItem}>
<Caption13Up style={styles.feeItemLabel} color="secondary">
{t('spending_confirm.lsp_fee')}
</Caption13Up>
<Money sats={lspFee} size="bodySSB" symbol={true} />
</View>
</View>
<View style={styles.feesRow}>
<View style={styles.feeItem}>
<View testID="SpendingConfirmAmount" style={styles.feeItem}>
<Caption13Up style={styles.feeItemLabel} color="secondary">
{t('spending_confirm.amount')}
</Caption13Up>
<Money sats={clientBalance} size="bodySSB" symbol={true} />
</View>
<View style={styles.feeItem}>
<View testID="SpendingConfirmTotal" style={styles.feeItem}>
<Caption13Up style={styles.feeItemLabel} color="secondary">
{t('spending_confirm.total')}
</Caption13Up>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Wallets/Receive/ReceiveQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ const ReceiveQR = ({
color="purple"
isEnabled={enableInstant}
onPress={onToggleInstant}
testID="ReceiveInstantSwitch">
testID="ReceiveInstantlySwitch">
{!enableInstant && <ArrowLNFunds color="secondary" />}
<BodyM>{t('receive_spending')}</BodyM>
</SwitchRow>
Expand Down

0 comments on commit b4b6a16

Please sign in to comment.