mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 19:05:27 -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() {
|
||||
topLevel {
|
||||
clickReaderOnBottomNav {
|
||||
assertReaderScreenDisplayed()
|
||||
}
|
||||
clickDownloadOnBottomNav {
|
||||
onlineLibrary {
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
@ -129,6 +129,7 @@ class GetContentShortcutTest {
|
||||
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
||||
topLevel {
|
||||
clickReaderOnBottomNav {
|
||||
assertReaderScreenDisplayed()
|
||||
}
|
||||
clickDownloadOnBottomNav {
|
||||
onlineLibrary { assertOnlineLibraryFragmentDisplayed(composeTestRule) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user