Fixed: testBookMarkPageOpenInReader which was failing on API level 25, and 30.

This commit is contained in:
MohitMaliFtechiz 2025-08-18 18:30:54 +05:30 committed by Kelson
parent d2ce4a71a1
commit 48ec6a81c5
3 changed files with 2 additions and 3 deletions

View File

@ -304,7 +304,6 @@ class NoteRobot : BaseRobot() {
"//*[contains(text(), 'History')]"
)
)
.perform(webClick())
}
})
}

View File

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

View File

@ -189,6 +189,7 @@ class LibkiwixBookmarkTest : BaseActivityTest() {
clickOnAndroidArticle(composeTestRule)
waitComposeToSettleViews()
assertAndroidArticleLoadedInReader(composeTestRule)
waitComposeToSettleViews()
// Save bookmark
clickOnSaveBookmarkImage(composeTestRule)
// open previous page