mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 19:35:36 -04:00
Fixed: GetContentShortcutTest
sometimes failing on API level 30, and 33.
This commit is contained in:
parent
4f426e73ca
commit
ca2bdcb241
@ -110,6 +110,7 @@ class TopLevelDestinationTest : BaseActivityTest() {
|
|||||||
fun testTopLevelDestination() {
|
fun testTopLevelDestination() {
|
||||||
topLevel {
|
topLevel {
|
||||||
clickReaderOnBottomNav {
|
clickReaderOnBottomNav {
|
||||||
|
assertReaderScreenDisplayed()
|
||||||
}
|
}
|
||||||
clickDownloadOnBottomNav {
|
clickDownloadOnBottomNav {
|
||||||
onlineLibrary {
|
onlineLibrary {
|
||||||
|
@ -26,7 +26,7 @@ import org.kiwix.kiwixmobile.core.R
|
|||||||
fun reader(func: ReaderRobot.() -> Unit) = ReaderRobot().applyWithViewHierarchyPrinting(func)
|
fun reader(func: ReaderRobot.() -> Unit) = ReaderRobot().applyWithViewHierarchyPrinting(func)
|
||||||
|
|
||||||
class ReaderRobot : BaseRobot() {
|
class ReaderRobot : BaseRobot() {
|
||||||
init {
|
fun assertReaderScreenDisplayed() {
|
||||||
isVisible(ViewId(R.id.activity_main_root))
|
isVisible(ViewId(R.id.activity_main_root))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -129,6 +129,7 @@ class GetContentShortcutTest {
|
|||||||
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
||||||
topLevel {
|
topLevel {
|
||||||
clickReaderOnBottomNav {
|
clickReaderOnBottomNav {
|
||||||
|
assertReaderScreenDisplayed()
|
||||||
}
|
}
|
||||||
clickDownloadOnBottomNav {
|
clickDownloadOnBottomNav {
|
||||||
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user