mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 03:16:27 -04:00
Improved ObjectBoxToLibkiwixMigratorTest
to not show the PlayStoreRestrictionDialog
while running the other test cases, also removed the duplicate code from few test cases.
This commit is contained in:
parent
50ea34228e
commit
f90d92e1e4
@ -305,9 +305,6 @@ class ObjectBoxToLibkiwixMigratorTest : BaseActivityTest() {
|
||||
@After
|
||||
fun finish() {
|
||||
IdlingRegistry.getInstance().unregister(KiwixIdlingResource.getInstance())
|
||||
PreferenceManager.getDefaultSharedPreferences(context).edit {
|
||||
putBoolean(SharedPreferenceUtil.PREF_PLAY_STORE_RESTRICTION, true)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
@ -54,7 +54,6 @@ class MimeTypeTest : BaseActivityTest() {
|
||||
putBoolean(SharedPreferenceUtil.PREF_SHOW_INTRO, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_WIFI_ONLY, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_PLAY_STORE_RESTRICTION, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_PLAY_STORE_RESTRICTION, false)
|
||||
}
|
||||
activityScenario = ActivityScenario.launch(KiwixMainActivity::class.java).apply {
|
||||
moveToState(Lifecycle.State.RESUMED)
|
||||
|
@ -53,7 +53,6 @@ class EncodedUrlTest : BaseActivityTest() {
|
||||
putBoolean(SharedPreferenceUtil.PREF_SHOW_INTRO, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_WIFI_ONLY, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_PLAY_STORE_RESTRICTION, false)
|
||||
putBoolean(SharedPreferenceUtil.PREF_PLAY_STORE_RESTRICTION, false)
|
||||
}
|
||||
activityScenario = ActivityScenario.launch(KiwixMainActivity::class.java).apply {
|
||||
moveToState(Lifecycle.State.RESUMED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user