Skip to content

Commit 57fa923

Browse files
authored
test: add testId hooks (#2415)
1 parent fb80da7 commit 57fa923

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/LightningChannel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const LightningChannel = ({
6161
</View>
6262
)}
6363
<View style={styles.amounts}>
64-
<View style={styles.amount}>
64+
<View testID="LightningChannelSpending" style={styles.amount}>
6565
<UpArrow color={spendingAvailableColor} width={14} height={14} />
6666
<Money
6767
sats={localBalance}
@@ -70,7 +70,7 @@ const LightningChannel = ({
7070
unit={EUnit.BTC}
7171
/>
7272
</View>
73-
<View style={styles.amount}>
73+
<View testID="LightningChannelReceiving" style={styles.amount}>
7474
<DownArrow color={receivingAvailableColor} width={14} height={14} />
7575
<Money
7676
sats={remoteBalance}

src/screens/Transfer/SpendingConfirm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,27 @@ const SpendingConfirm = ({
9797

9898
<View style={styles.fees}>
9999
<View style={styles.feesRow}>
100-
<View style={styles.feeItem}>
100+
<View testID="SpendingConfirmNetworkFee" style={styles.feeItem}>
101101
<Caption13Up style={styles.feeItemLabel} color="secondary">
102102
{t('spending_confirm.network_fee')}
103103
</Caption13Up>
104104
<Money sats={transactionFee} size="bodySSB" symbol={true} />
105105
</View>
106-
<View style={styles.feeItem}>
106+
<View testID="SpendingConfirmLspFee" style={styles.feeItem}>
107107
<Caption13Up style={styles.feeItemLabel} color="secondary">
108108
{t('spending_confirm.lsp_fee')}
109109
</Caption13Up>
110110
<Money sats={lspFee} size="bodySSB" symbol={true} />
111111
</View>
112112
</View>
113113
<View style={styles.feesRow}>
114-
<View style={styles.feeItem}>
114+
<View testID="SpendingConfirmAmount" style={styles.feeItem}>
115115
<Caption13Up style={styles.feeItemLabel} color="secondary">
116116
{t('spending_confirm.amount')}
117117
</Caption13Up>
118118
<Money sats={clientBalance} size="bodySSB" symbol={true} />
119119
</View>
120-
<View style={styles.feeItem}>
120+
<View testID="SpendingConfirmTotal" style={styles.feeItem}>
121121
<Caption13Up style={styles.feeItemLabel} color="secondary">
122122
{t('spending_confirm.total')}
123123
</Caption13Up>

src/screens/Wallets/Receive/ReceiveQR.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ const ReceiveQR = ({
631631
color="purple"
632632
isEnabled={enableInstant}
633633
onPress={onToggleInstant}
634-
testID="ReceiveInstantSwitch">
634+
testID="ReceiveInstantlySwitch">
635635
{!enableInstant && <ArrowLNFunds color="secondary" />}
636636
<BodyM>{t('receive_spending')}</BodyM>
637637
</SwitchRow>

0 commit comments

Comments
 (0)