mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
BIT-1938: Display toast after updating cipher collection or moving cipher to an organization (#1058)
This commit is contained in:
committed by
Álison Fernandes
parent
c779482bf8
commit
86756a4698
+13
@@ -368,6 +368,15 @@ class VaultMoveToOrganizationViewModelTest : BaseViewModelTest() {
|
||||
VaultMoveToOrganizationEvent.NavigateBack,
|
||||
awaitItem(),
|
||||
)
|
||||
assertEquals(
|
||||
VaultMoveToOrganizationEvent.ShowToast(
|
||||
text = R.string.moved_item_to_org.asText(
|
||||
"mockName-1",
|
||||
"mockOrganizationName-1",
|
||||
),
|
||||
),
|
||||
awaitItem(),
|
||||
)
|
||||
}
|
||||
coVerify {
|
||||
vaultRepository.shareCipher(
|
||||
@@ -403,6 +412,10 @@ class VaultMoveToOrganizationViewModelTest : BaseViewModelTest() {
|
||||
VaultMoveToOrganizationEvent.NavigateBack,
|
||||
awaitItem(),
|
||||
)
|
||||
assertEquals(
|
||||
VaultMoveToOrganizationEvent.ShowToast(R.string.item_updated.asText()),
|
||||
awaitItem(),
|
||||
)
|
||||
}
|
||||
coVerify {
|
||||
vaultRepository.updateCipherCollections(
|
||||
|
||||
Reference in New Issue
Block a user