|
|
|
@ -63,6 +63,7 @@ import org.mozilla.fenix.collections.CollectionsDialog
|
|
|
|
|
import org.mozilla.fenix.collections.show
|
|
|
|
|
import org.mozilla.fenix.components.AppStore
|
|
|
|
|
import org.mozilla.fenix.components.TabCollectionStorage
|
|
|
|
|
import org.mozilla.fenix.components.appstate.AppAction
|
|
|
|
|
import org.mozilla.fenix.components.bookmarks.BookmarksUseCase
|
|
|
|
|
import org.mozilla.fenix.ext.maxActiveTime
|
|
|
|
|
import org.mozilla.fenix.ext.potentialInactiveTabs
|
|
|
|
@ -958,6 +959,7 @@ class DefaultTabsTrayControllerTest {
|
|
|
|
|
|
|
|
|
|
assertEquals(privateTab.id, browserStore.state.selectedTabId)
|
|
|
|
|
assertEquals(true, browsingModeManager.mode.isPrivate)
|
|
|
|
|
verify { appStore.dispatch(AppAction.ModeChange(BrowsingMode.Private)) }
|
|
|
|
|
|
|
|
|
|
controller.handleTabDeletion("privateTab")
|
|
|
|
|
browserStore.dispatch(TabListAction.SelectTabAction(normalTab.id)).joinBlocking()
|
|
|
|
@ -965,6 +967,7 @@ class DefaultTabsTrayControllerTest {
|
|
|
|
|
|
|
|
|
|
assertEquals(normalTab.id, browserStore.state.selectedTabId)
|
|
|
|
|
assertEquals(false, browsingModeManager.mode.isPrivate)
|
|
|
|
|
verify { appStore.dispatch(AppAction.ModeChange(BrowsingMode.Normal)) }
|
|
|
|
|
} finally {
|
|
|
|
|
unmockkStatic("mozilla.components.browser.state.selector.SelectorsKt")
|
|
|
|
|
}
|
|
|
|
|