mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
Fixed: testBookMarkPageOpenInReader
which was failing on API level 25, and 30.
This commit is contained in:
parent
d2ce4a71a1
commit
48ec6a81c5
@ -304,7 +304,6 @@ class NoteRobot : BaseRobot() {
|
||||
"//*[contains(text(), 'History')]"
|
||||
)
|
||||
)
|
||||
.perform(webClick())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -114,6 +114,7 @@ class BookmarksRobot : BaseRobot() {
|
||||
fun clickOnSaveBookmarkImage(composeTestRule: ComposeContentTestRule) {
|
||||
composeTestRule.apply {
|
||||
waitForIdle()
|
||||
waitUntilTimeout()
|
||||
waitUntil(TEST_PAUSE_MS_FOR_DOWNLOAD_TEST.toLong()) {
|
||||
onNodeWithTag(READER_BOTTOM_BAR_BOOKMARK_BUTTON_TESTING_TAG).isDisplayed()
|
||||
}
|
||||
@ -194,7 +195,6 @@ class BookmarksRobot : BaseRobot() {
|
||||
|
||||
fun assertZimFileLoadedIntoTheReader(composeTestRule: ComposeContentTestRule) {
|
||||
composeTestRule.apply {
|
||||
waitUntilTimeout()
|
||||
composeTestRule.apply {
|
||||
waitUntilTimeout()
|
||||
onNodeWithTag(BOTTOM_NAV_READER_ITEM_TESTING_TAG).performClick()
|
||||
@ -238,7 +238,6 @@ class BookmarksRobot : BaseRobot() {
|
||||
"//*[contains(text(), 'History')]"
|
||||
)
|
||||
)
|
||||
.perform(webClick())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -189,6 +189,7 @@ class LibkiwixBookmarkTest : BaseActivityTest() {
|
||||
clickOnAndroidArticle(composeTestRule)
|
||||
waitComposeToSettleViews()
|
||||
assertAndroidArticleLoadedInReader(composeTestRule)
|
||||
waitComposeToSettleViews()
|
||||
// Save bookmark
|
||||
clickOnSaveBookmarkImage(composeTestRule)
|
||||
// open previous page
|
||||
|
Loading…
x
Reference in New Issue
Block a user