BIT-534: fixing trash counter to always display one (#279)

This commit is contained in:
joshua-livefront authored and Álison Fernandes committed 2024-06-20 17:08:07 +01:00
1 parent b914f52d0f
commit dfc653b72e
2 files changed
+3 -3

No files matched your search

@@ -225,7 +225,7 @@ fun VaultContent(
item {
BitwardenListHeaderTextWithSupportLabel(
label = stringResource(id = R.string.trash),
supportingLabel = state.trashItemsCount.toString(),
supportingLabel = "1",
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
@@ -365,7 +365,7 @@ class VaultScreenTest : BaseComposeTest() {
composeTestRule
.onAllNodes(hasText(rowText))
.filterToOne(!hasClickAction())
.assertTextEquals(rowText, 0.toString())
.assertTextEquals(rowText, 1.toString())
// Item
composeTestRule
.onAllNodes(hasText(rowText))
@@ -386,7 +386,7 @@ class VaultScreenTest : BaseComposeTest() {
composeTestRule
.onAllNodes(hasText(rowText))
.filterToOne(!hasClickAction())
.assertTextEquals(rowText, trashCount.toString())
.assertTextEquals(rowText, 1.toString())
// Item
composeTestRule
.onAllNodes(hasText(rowText))