Skip to content

Commit 97db5f5

Browse files
authored
Merge pull request #362 from synonymdev/primary-secondary-test-tags
Adjust $testTag-primary, $testTag-secondary tags
2 parents 85d7c54 + 3f20fb4 commit 97db5f5

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

app/src/main/java/to/bitkit/ui/components/BalanceHeaderView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ fun BalanceHeaderView(
102102
modifier = modifier,
103103
smallRowSymbol = btcComponents.symbol,
104104
smallRowText = btcComponents.value,
105+
smallRowModifier = Modifier.testTag("$testTag-secondary"),
105106
largeRowPrefix = prefix,
106107
largeRowText = converted.formatted,
107108
largeRowSymbol = converted.symbol,
109+
largeRowModifier = Modifier.testTag("$testTag-primary"),
108110
showSymbol = true,
109111
hideBalance = shouldHideBalance,
110112
isSwipeToHideEnabled = allowSwipeToHide,

app/src/main/java/to/bitkit/ui/screens/wallets/HomeScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ private fun Content(
329329
showEyeIcon = true,
330330
modifier = Modifier
331331
.fillMaxWidth()
332-
.testTag("TotalBalance")
332+
.testTag("TotalBalance"),
333+
testTag = "TotalBalance"
333334
)
334335
if (!homeUiState.showEmptyState) {
335336
Spacer(modifier = Modifier.height(32.dp))

app/src/main/java/to/bitkit/ui/screens/wallets/SavingsWalletScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ fun SavingsWalletScreen(
8080
sats = balances.totalOnchainSats.toLong(),
8181
modifier = Modifier
8282
.fillMaxWidth()
83-
.testTag("TotalBalance")
83+
.testTag("TotalBalance"),
84+
testTag = "TotalBalance"
8485
)
8586
if (!showEmptyState) {
8687
Spacer(modifier = Modifier.height(32.dp))

app/src/main/java/to/bitkit/ui/screens/wallets/SpendingWalletScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ fun SpendingWalletScreen(
9090
sats = balances.totalLightningSats.toLong(),
9191
modifier = Modifier
9292
.fillMaxWidth()
93-
.testTag("TotalBalance")
93+
.testTag("TotalBalance"),
94+
testTag = "TotalBalance"
9495
)
9596
if (!showEmptyState) {
9697
Spacer(modifier = Modifier.height(32.dp))

app/src/main/java/to/bitkit/ui/screens/wallets/send/SendConfirmScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ private fun Content(
202202
onClick = { onEvent(SendEvent.BackToAmount) },
203203
modifier = Modifier
204204
.fillMaxWidth()
205-
.testTag("ReviewAmount")
205+
.testTag("ReviewAmount"),
206+
testTag = "ReviewAmount"
206207
)
207208

208209
Spacer(modifier = Modifier.height(16.dp))

0 commit comments

Comments
 (0)