|
|
@ -13,6 +13,7 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi
|
|
|
|
import mozilla.components.browser.menu.view.MenuButton
|
|
|
|
import mozilla.components.browser.menu.view.MenuButton
|
|
|
|
import org.junit.Assert
|
|
|
|
import org.junit.Assert
|
|
|
|
import org.junit.Before
|
|
|
|
import org.junit.Before
|
|
|
|
|
|
|
|
import org.junit.Ignore
|
|
|
|
import org.junit.Test
|
|
|
|
import org.junit.Test
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.utils.Settings
|
|
|
|
import org.mozilla.fenix.utils.Settings
|
|
|
@ -45,6 +46,7 @@ class HomeFragmentTest {
|
|
|
|
Assert.assertNull(topSitesConfig.frecencyConfig)
|
|
|
|
Assert.assertNull(topSitesConfig.frecencyConfig)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore("See https://github.com/mozilla-mobile/fenix/issues/20795")
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun `GIVEN showTopFrecentSites is true WHEN getTopSitesConfig is called THEN it returns TopSitesConfig with non-null frecencyConfig`() {
|
|
|
|
fun `GIVEN showTopFrecentSites is true WHEN getTopSitesConfig is called THEN it returns TopSitesConfig with non-null frecencyConfig`() {
|
|
|
|
every { context.settings().showTopFrecentSites } returns true
|
|
|
|
every { context.settings().showTopFrecentSites } returns true
|
|
|
|