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

This commit is contained in:
joshua-livefront 2023-11-27 15:25:33 -05:00 committed by Álison Fernandes
parent b914f52d0f
commit dfc653b72e
2 changed files with 3 additions and 3 deletions

View file

@ -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),

View file

@ -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))