Skip to content

Commit b4b6a16

Browse files
committed
test: add testId hooks
1 parent 328b8f1 commit b4b6a16

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
@@ -100,27 +100,27 @@ const SpendingConfirm = ({
100100

101101
<View style={styles.fees}>
102102
<View style={styles.feesRow}>
103-
<View style={styles.feeItem}>
103+
<View testID="SpendingConfirmNetworkFee" style={styles.feeItem}>
104104
<Caption13Up style={styles.feeItemLabel} color="secondary">
105105
{t('spending_confirm.network_fee')}
106106
</Caption13Up>
107107
<Money sats={transactionFee} size="bodySSB" symbol={true} />
108108
</View>
109-
<View style={styles.feeItem}>
109+
<View testID="SpendingConfirmLspFee" style={styles.feeItem}>
110110
<Caption13Up style={styles.feeItemLabel} color="secondary">
111111
{t('spending_confirm.lsp_fee')}
112112
</Caption13Up>
113113
<Money sats={lspFee} size="bodySSB" symbol={true} />
114114
</View>
115115
</View>
116116
<View style={styles.feesRow}>
117-
<View style={styles.feeItem}>
117+
<View testID="SpendingConfirmAmount" style={styles.feeItem}>
118118
<Caption13Up style={styles.feeItemLabel} color="secondary">
119119
{t('spending_confirm.amount')}
120120
</Caption13Up>
121121
<Money sats={clientBalance} size="bodySSB" symbol={true} />
122122
</View>
123-
<View style={styles.feeItem}>
123+
<View testID="SpendingConfirmTotal" style={styles.feeItem}>
124124
<Caption13Up style={styles.feeItemLabel} color="secondary">
125125
{t('spending_confirm.total')}
126126
</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)