Fixes app helper to editor popup dialog

Fixes: 248248457
Test: atest FlickerLibTest && atest FlickerTests
Change-Id: Ie5629e8e79b21fd20e02a8891e65ebe1ee28c452
This commit is contained in:
Nataniel Borges
2022-09-22 16:07:22 +00:00
parent ec667f9fc4
commit 445cbf56ac

View File

@@ -26,9 +26,9 @@ import com.android.server.wm.traces.parser.windowmanager.WindowManagerStateHelpe
class ImeEditorPopupDialogAppHelper @JvmOverloads constructor(
instr: Instrumentation,
launcherName: String = ActivityOptions.Ime.AutoFocusActivity.LABEL,
launcherName: String = ActivityOptions.Ime.EditorPopupDialogActivity.LABEL,
component: ComponentNameMatcher =
ActivityOptions.Ime.AutoFocusActivity.COMPONENT.toFlickerComponent()
ActivityOptions.Ime.EditorPopupDialogActivity.COMPONENT.toFlickerComponent()
) : ImeAppHelper(instr, launcherName, component) {
override fun openIME(wmHelper: WindowManagerStateHelper) {
val editText = uiDevice.wait(Until.findObject(By.text("focused editText")), FIND_TIMEOUT)