Fixed: GetContentShortcutTest sometimes failing on API level 30, and 33.

This commit is contained in:
MohitMaliFtechiz 2025-05-13 21:34:00 +05:30
parent 4f426e73ca
commit ca2bdcb241
3 changed files with 3 additions and 1 deletions

View File

@ -110,6 +110,7 @@ class TopLevelDestinationTest : BaseActivityTest() {
fun testTopLevelDestination() {
topLevel {
clickReaderOnBottomNav {
assertReaderScreenDisplayed()
}
clickDownloadOnBottomNav {
onlineLibrary {

View File

@ -26,7 +26,7 @@ import org.kiwix.kiwixmobile.core.R
fun reader(func: ReaderRobot.() -> Unit) = ReaderRobot().applyWithViewHierarchyPrinting(func)
class ReaderRobot : BaseRobot() {
init {
fun assertReaderScreenDisplayed() {
isVisible(ViewId(R.id.activity_main_root))
}
}

View File

@ -129,6 +129,7 @@ class GetContentShortcutTest {
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
topLevel {
clickReaderOnBottomNav {
assertReaderScreenDisplayed()
}
clickDownloadOnBottomNav {
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }