From be0f7d9dcc59cd39ec1b91febf731b649ec06f1f Mon Sep 17 00:00:00 2001 From: Arturo Mejia Date: Wed, 11 Aug 2021 14:09:18 -0400 Subject: [PATCH] [fenix] Disable intermittent tests. --- .../TrackingProtectionExceptionsInteractorTest.kt | 3 ++- app/src/test/java/org/mozilla/fenix/home/HomeFragmentTest.kt | 2 ++ .../fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt | 2 ++ .../settings/quicksettings/QuickSettingsFragmentReducerTest.kt | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsInteractorTest.kt b/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsInteractorTest.kt index a37c3c888d..a4a7747287 100644 --- a/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsInteractorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsInteractorTest.kt @@ -13,6 +13,7 @@ import io.mockk.verifySequence import mozilla.components.concept.engine.content.blocking.TrackingProtectionException import mozilla.components.feature.session.TrackingProtectionUseCases import org.junit.Before +import org.junit.Ignore import org.junit.Test import org.mozilla.fenix.BrowserDirection import org.mozilla.fenix.HomeActivity @@ -56,7 +57,7 @@ class TrackingProtectionExceptionsInteractorTest { ) } } - + @Ignore("See https://github.com/mozilla-mobile/fenix/issues/20796") @Test fun onDeleteAll() { interactor.onDeleteAll() diff --git a/app/src/test/java/org/mozilla/fenix/home/HomeFragmentTest.kt b/app/src/test/java/org/mozilla/fenix/home/HomeFragmentTest.kt index bca3e73528..8a99d0bcfe 100644 --- a/app/src/test/java/org/mozilla/fenix/home/HomeFragmentTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/HomeFragmentTest.kt @@ -13,6 +13,7 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi import mozilla.components.browser.menu.view.MenuButton import org.junit.Assert import org.junit.Before +import org.junit.Ignore import org.junit.Test import org.mozilla.fenix.ext.settings import org.mozilla.fenix.utils.Settings @@ -45,6 +46,7 @@ class HomeFragmentTest { Assert.assertNull(topSitesConfig.frecencyConfig) } + @Ignore("See https://github.com/mozilla-mobile/fenix/issues/20795") @Test fun `GIVEN showTopFrecentSites is true WHEN getTopSitesConfig is called THEN it returns TopSitesConfig with non-null frecencyConfig`() { every { context.settings().showTopFrecentSites } returns true diff --git a/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt b/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt index 571fe0cb60..b57ed541be 100644 --- a/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt +++ b/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt @@ -20,6 +20,7 @@ import mozilla.components.browser.state.store.BrowserStore import org.junit.After import org.junit.Assert.assertEquals import org.junit.Before +import org.junit.Ignore import org.junit.Test import org.mozilla.fenix.R @@ -82,6 +83,7 @@ class ShortcutsSuggestionProviderTest { assertEquals("Search engine settings", suggestions[2].title) } + @Ignore("See https://github.com/mozilla-mobile/fenix/issues/20797") @Test fun `callbacks are triggered when suggestions are clicked`() = runBlockingTest { val engineOne = mockk(relaxed = true) diff --git a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/QuickSettingsFragmentReducerTest.kt b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/QuickSettingsFragmentReducerTest.kt index 95963693fc..14e4cfc525 100644 --- a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/QuickSettingsFragmentReducerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/QuickSettingsFragmentReducerTest.kt @@ -7,11 +7,13 @@ package org.mozilla.fenix.settings.quicksettings import mozilla.components.support.test.mock import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue +import org.junit.Ignore import org.junit.Test import org.mozilla.fenix.settings.PhoneFeature class QuickSettingsFragmentReducerTest { + @Ignore("See https://github.com/mozilla-mobile/fenix/issues/20792") @Test fun `WebsitePermissionAction - TogglePermission`() { val toggleablePermission = WebsitePermission.Toggleable(