From aaafa97690168c8c8bcd345136df6ae08ad9c40e Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Tue, 19 Mar 2024 22:31:35 +0530 Subject: [PATCH] We are removing the `ZimHostFragment` test from the API level 33 because, most of the time, the emulator does not have WiFi service. Running this test on this emulator is not worthwhile, as we are testing this code on WiFi. --- .../org/kiwix/kiwixmobile/webserver/ZimHostFragmentTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/webserver/ZimHostFragmentTest.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/webserver/ZimHostFragmentTest.kt index 2545ec3d6..c9e093179 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/webserver/ZimHostFragmentTest.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/webserver/ZimHostFragmentTest.kt @@ -97,7 +97,9 @@ class ZimHostFragmentTest { @Test fun testZimHostFragment() { - 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 + ) { activityScenario.onActivity { it.navigate(R.id.libraryFragment) }