mirror of
https://github.com/bitwarden/android.git
synced 2025-03-15 18:58:59 +03:00
BIT-534: fixing trash counter to always display one (#279)
This commit is contained in:
parent
b914f52d0f
commit
dfc653b72e
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue