From 3f066d4fa37cc5ec8e45902920599d7644a1ef5d Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Fri, 4 Oct 2024 22:38:17 +0530 Subject: [PATCH] Added log to verify the CI behaviour. --- .../kiwixmobile/nav/destination/library/LibraryRobot.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 630bcf8ea..ce2f289ef 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" + ) } } }