diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/search/SearchFragmentTest.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/search/SearchFragmentTest.kt index f965a25b3e..0d3eea45e0 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/search/SearchFragmentTest.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/search/SearchFragmentTest.kt @@ -40,6 +40,7 @@ import okhttp3.Request import okhttp3.ResponseBody import org.hamcrest.Matchers.allOf import org.junit.Before +import org.junit.Rule import org.junit.Test import org.kiwix.kiwixmobile.BaseActivityTest import org.kiwix.kiwixmobile.R @@ -49,6 +50,7 @@ import org.kiwix.kiwixmobile.core.utils.LanguageUtils.Companion.handleLocaleChan import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil import org.kiwix.kiwixmobile.main.KiwixMainActivity import org.kiwix.kiwixmobile.nav.destination.library.LocalLibraryFragmentDirections.actionNavigationLibraryToNavigationReader +import org.kiwix.kiwixmobile.testutils.RetryRule import org.kiwix.kiwixmobile.testutils.TestUtils.closeSystemDialogs import org.kiwix.kiwixmobile.testutils.TestUtils.isSystemUINotRespondingDialogVisible import java.io.File @@ -61,9 +63,9 @@ class SearchFragmentTest : BaseActivityTest() { private val rayCharlesZimFileUrl = "https://dev.kiwix.org/kiwix-android/test/wikipedia_en_ray_charles_maxi_2023-12.zim" - // @Rule - // @JvmField - // var retryRule = RetryRule() + @Rule + @JvmField + var retryRule = RetryRule() private lateinit var kiwixMainActivity: KiwixMainActivity private lateinit var uiDevice: UiDevice