mirror of
https://github.com/bitwarden/android.git
synced 2026-11-09 10:34:18 -06:00
[PM-24364] fix: [Android] Import logins card is not dismissed [bug-factory poc] (#7486)
Co-authored-by: bug-factory <bug-factory@bitwarden.com>
This commit is contained in:
co-authored by
bug-factory
parent
43d7b8b2de
commit
cb88abf4d5
+3
-3
@@ -85,9 +85,9 @@ class ImportLoginsViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
private fun handleFailedSyncAcknowledged() {
|
||||
mutableStateFlow.update {
|
||||
it.copy(dialogState = null)
|
||||
}
|
||||
dismissDialog()
|
||||
firstTimeActionManager.storeShowImportLogins(showImportLogins = false)
|
||||
firstTimeActionManager.storeShowImportLoginsSettingsBadge(showBadge = true)
|
||||
sendEvent(ImportLoginsEvent.NavigateBack)
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -423,7 +423,7 @@ class ImportLoginsViewModelTest : BaseViewModelTest() {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `FailSyncAcknowledged should remove dialog state and send NavigateBack event`() =
|
||||
fun `FailSyncAcknowledged clears dialog, navigates back, and stores first time values`() =
|
||||
runTest {
|
||||
coEvery {
|
||||
vaultRepository.syncForResult(forced = true)
|
||||
@@ -447,6 +447,10 @@ class ImportLoginsViewModelTest : BaseViewModelTest() {
|
||||
awaitItem(),
|
||||
)
|
||||
}
|
||||
verify(exactly = 1) {
|
||||
firstTimeActionManager.storeShowImportLogins(showImportLogins = false)
|
||||
firstTimeActionManager.storeShowImportLoginsSettingsBadge(showBadge = true)
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("MaxLineLength")
|
||||
|
||||
Reference in New Issue
Block a user