Wait IME visible after launch

The ImeAppAutoFocus shows the IME when the app is launched. at the moment it doesn't wait for the IME to be visible before continuing and this causes test flakiness

Test: atest FlickerTests
Change-Id: If3ab191fcc9d026553a1859e594e4d38da37f41d
This commit is contained in:
Nataniel Borges
2022-04-19 18:58:22 +00:00
parent b15f71e273
commit b358224e5b

View File

@@ -41,6 +41,16 @@ class ImeAppAutoFocusHelper @JvmOverloads constructor(
waitIMEShown(device, wmHelper)
}
override fun launchViaIntent(
wmHelper: WindowManagerStateHelper,
expectedWindowName: String,
action: String?,
stringExtras: Map<String, String>
) {
super.launchViaIntent(wmHelper, expectedWindowName, action, stringExtras)
waitIMEShown(uiDevice, wmHelper)
}
override fun open() {
val expectedPackage = if (rotation.isRotated()) {
imePackageName