[#824] Run emulator.wtf tests against API 33
This commit is contained in:
parent
f0825164be
commit
d1d7304780
|
@ -166,7 +166,7 @@ org.ow2.asm:asm-util:9.2=runtimeClasspath
|
|||
org.ow2.asm:asm:9.2=compileClasspath,runtimeClasspath
|
||||
org.slf4j:slf4j-api:1.7.30=runtimeClasspath
|
||||
org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=runtimeClasspath
|
||||
wtf.emulator:gradle-plugin:0.0.15=compileClasspath,runtimeClasspath
|
||||
wtf.emulator:gradle-plugin:0.9.4=compileClasspath,runtimeClasspath
|
||||
xerces:xercesImpl:2.12.0=runtimeClasspath
|
||||
xml-apis:xml-apis:1.4.01=runtimeClasspath
|
||||
empty=annotationProcessor,kotlinScriptDefExtensions
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
val EMULATOR_WTF_MIN_SDK = 23
|
||||
|
||||
@Suppress("MagicNumber", "PropertyName", "VariableNaming")
|
||||
val EMULATOR_WTF_MAX_SDK = 31
|
||||
val EMULATOR_WTF_MAX_SDK = 33
|
||||
|
||||
internal val className = this::class.simpleName
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ org.ow2.asm:asm-util:9.2=classpath
|
|||
org.ow2.asm:asm:9.2=classpath
|
||||
org.slf4j:slf4j-api:1.7.30=classpath
|
||||
org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath
|
||||
wtf.emulator:gradle-plugin:0.0.15=classpath
|
||||
wtf.emulator:gradle-plugin:0.9.4=classpath
|
||||
xerces:xercesImpl:2.12.0=classpath
|
||||
xml-apis:xml-apis:1.4.01=classpath
|
||||
xmlpull:xmlpull:1.1.3.1=classpath
|
||||
|
|
|
@ -103,7 +103,7 @@ ANDROID_NDK_VERSION=23.0.7599858
|
|||
ANDROID_GRADLE_PLUGIN_VERSION=7.4.0
|
||||
DETEKT_VERSION=1.22.0
|
||||
DETEKT_COMPOSE_RULES_VERSION=0.1.2
|
||||
EMULATOR_WTF_GRADLE_PLUGIN_VERSION=0.0.15
|
||||
EMULATOR_WTF_GRADLE_PLUGIN_VERSION=0.9.4
|
||||
FIREBASE_CRASHLYTICS_BUILD_TOOLS_VERSION=2.9.4
|
||||
FLANK_VERSION=23.01.0
|
||||
FULLADLE_VERSION=0.17.4
|
||||
|
|
|
@ -4,6 +4,7 @@ import android.content.ClipData
|
|||
import android.content.ClipboardManager
|
||||
import android.content.Context
|
||||
import android.os.Build.VERSION_CODES
|
||||
import android.os.SystemClock
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||
import androidx.compose.ui.input.key.Key
|
||||
|
@ -32,6 +33,7 @@ import org.junit.Assert.assertTrue
|
|||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import kotlin.test.assertFalse
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
// Non-multiplatform tests that require interacting with the Android system (e.g. clipboard, Context)
|
||||
// These don't have persistent state, so they are still unit tests.
|
||||
|
@ -95,6 +97,7 @@ class RestoreViewAndroidTest : UiTestPrerequisites() {
|
|||
|
||||
@Test
|
||||
@MediumTest
|
||||
@SdkSuppress(minSdkVersion = VERSION_CODES.TIRAMISU)
|
||||
fun keyboard_disappears_after_seed() {
|
||||
newTestSetup()
|
||||
|
||||
|
@ -107,7 +110,10 @@ class RestoreViewAndroidTest : UiTestPrerequisites() {
|
|||
composeTestRule.waitForIdle()
|
||||
|
||||
val inputMethodManager = getAppContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
assertFalse(inputMethodManager.isAcceptingText)
|
||||
kotlin.runCatching { assertFalse(inputMethodManager.isAcceptingText) }.onFailure {
|
||||
SystemClock.sleep(2.seconds.inWholeMilliseconds)
|
||||
assertFalse(inputMethodManager.isAcceptingText)
|
||||
}
|
||||
}
|
||||
|
||||
private fun newTestSetup(
|
||||
|
|
Loading…
Reference in New Issue