mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/22488 - Fix intermittent test failure with InactiveTabsControllerTest
This commit is contained in:
parent
100d5372ee
commit
6b5ce4d387
@ -14,6 +14,7 @@ import io.mockk.verify
|
||||
import mozilla.components.browser.state.state.TabSessionState
|
||||
import mozilla.components.browser.state.store.BrowserStore
|
||||
import mozilla.components.browser.tabstray.TabsTray
|
||||
import mozilla.components.support.test.libstate.ext.waitUntilIdle
|
||||
import org.junit.Assert.assertEquals
|
||||
import mozilla.components.browser.state.state.createTab as createTabState
|
||||
import org.junit.Test
|
||||
@ -47,6 +48,8 @@ class InactiveTabsControllerTest {
|
||||
|
||||
controller.updateCardExpansion(true)
|
||||
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
verify { tray.updateTabs(capture(tabsSlot), any()) }
|
||||
|
||||
assertEquals(2, tabsSlot.captured.size)
|
||||
|
Loading…
Reference in New Issue
Block a user