mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-04 03:06:41 -04:00
Fixed: The testBookmarks
failing on Android 13 and above.
This commit is contained in:
parent
0c91e329d4
commit
21583e76c0
@ -19,6 +19,7 @@ package org.kiwix.kiwixmobile.language
|
|||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
import android.app.Instrumentation
|
import android.app.Instrumentation
|
||||||
|
import android.os.Build
|
||||||
import androidx.compose.ui.test.junit4.createComposeRule
|
import androidx.compose.ui.test.junit4.createComposeRule
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
import androidx.lifecycle.Lifecycle
|
import androidx.lifecycle.Lifecycle
|
||||||
@ -207,6 +208,8 @@ class LanguageFragmentTest {
|
|||||||
)
|
)
|
||||||
clickOnSaveLanguageIcon(composeTestRule)
|
clickOnSaveLanguageIcon(composeTestRule)
|
||||||
}
|
}
|
||||||
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
||||||
LeakAssertions.assertNoLeaks()
|
LeakAssertions.assertNoLeaks()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,9 +134,9 @@ class LibkiwixBookmarkTest : BaseActivityTest() {
|
|||||||
pressBack()
|
pressBack()
|
||||||
// Test saving bookmark
|
// Test saving bookmark
|
||||||
clickOnSaveBookmarkImage()
|
clickOnSaveBookmarkImage()
|
||||||
topLevel {
|
openBookmarkScreen()
|
||||||
clickBookmarksOnNavDrawer { assertBookmarkSaved(composeTestRule) }
|
assertBookmarkSaved(composeTestRule)
|
||||||
}
|
pressBack()
|
||||||
// Test removing bookmark
|
// Test removing bookmark
|
||||||
clickOnSaveBookmarkImage()
|
clickOnSaveBookmarkImage()
|
||||||
longClickOnSaveBookmarkImage()
|
longClickOnSaveBookmarkImage()
|
||||||
|
@ -161,7 +161,9 @@ class NavigationHistoryTest : BaseActivityTest() {
|
|||||||
pressBack()
|
pressBack()
|
||||||
pressBack()
|
pressBack()
|
||||||
}
|
}
|
||||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1) {
|
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1 &&
|
||||||
|
Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU
|
||||||
|
) {
|
||||||
// temporary disabled on Android 25
|
// temporary disabled on Android 25
|
||||||
LeakAssertions.assertNoLeaks()
|
LeakAssertions.assertNoLeaks()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user