From de807f2a51d893320aee416a849f9b846c8e8464 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Tue, 27 May 2025 12:33:51 +0530 Subject: [PATCH] Fixed: `SearchFragmentTestForCustomApp` which sometimes failing on API level 33 and above. --- .../java/org/kiwix/kiwixmobile/custom/search/SearchRobot.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/src/androidTest/java/org/kiwix/kiwixmobile/custom/search/SearchRobot.kt b/custom/src/androidTest/java/org/kiwix/kiwixmobile/custom/search/SearchRobot.kt index 8828c047f..6f0964bcb 100644 --- a/custom/src/androidTest/java/org/kiwix/kiwixmobile/custom/search/SearchRobot.kt +++ b/custom/src/androidTest/java/org/kiwix/kiwixmobile/custom/search/SearchRobot.kt @@ -118,10 +118,10 @@ class SearchRobot { fun searchAndClickOnArticle(searchString: String, composeTestRule: ComposeContentTestRule) { // wait a bit to properly load the ZIM file in the reader - composeTestRule.waitUntilTimeout(TestUtils.TEST_PAUSE_MS_FOR_SEARCH_TEST.toLong()) + composeTestRule.waitUntilTimeout() openSearchScreen() // Wait a bit to properly visible the search screen. - composeTestRule.waitUntilTimeout(TestUtils.TEST_PAUSE_MS_FOR_SEARCH_TEST.toLong()) + composeTestRule.waitUntilTimeout() searchWithFrequentlyTypedWords(searchString, composeTestRule = composeTestRule) clickOnSearchItemInSearchList(composeTestRule) }