Added log to verify the CI behaviour.

This commit is contained in:
MohitMaliFtechiz 2024-10-04 22:38:17 +05:30 committed by Kelson
parent 15435a0a5d
commit 3f066d4fa3

View File

@ -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"
)
}
}
}