[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/23517: add a check to handleDeleteAbnormal() test to also verify

removal of items inside abnormal list
pull/600/head
mike a 2 years ago committed by mergify[bot]
parent 01f8b34f1e
commit f841fa6f20

@ -222,6 +222,13 @@ class HistoryMetadataGroupControllerTest {
}
metrics.track(Event.HistorySearchTermGroupRemoveTab)
}
coVerify {
abnormalList.forEach {
store.dispatch(HistoryMetadataGroupFragmentAction.Delete(it))
historyStorage.deleteVisitsFor(it.url)
}
metrics.track(Event.HistorySearchTermGroupRemoveTab)
}
// Here we expect the action to be dispatched, because deleted items include the items
// provided by getMetadataItemsList(), so that the store becomes empty and the event
// should be sent

Loading…
Cancel
Save