diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/nav/destination/library/LibraryRobot.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/nav/destination/library/LibraryRobot.kt index 630bcf8ea8..ce2f289efd 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/nav/destination/library/LibraryRobot.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/nav/destination/library/LibraryRobot.kt @@ -73,13 +73,15 @@ class LibraryRobot : BaseRobot() { try { onView(withId(R.id.file_management_no_files)).check(matches(isDisplayed())) refresh(R.id.zim_swiperefresh) - return } catch (ignore: AssertionFailedError) { try { onView(withId(R.id.zimfilelist)).check(matches(isDisplayed())) refresh(R.id.zim_swiperefresh) } catch (e: AssertionFailedError) { - // do nothing + Log.i( + "LOCAL_LIBRARY", + "No need to refresh the data, since there is no files found" + ) } } }