Skip to content

Android: Given_TextBox touch scroll-lock tests time out waiting for the input pane #25644

Closed

Description

@Xiaoy312

Current behavior 🐛

The Given_TextBox touch-caret scroll-lock tests (the ones built on AssertTouchCaretDoesNotLockScrollViewer) fail intermittently on the Android lanes. They time out in WaitForAndroidInputPanePositioning:

Timed out waiting for condition to be met. The requested input pane must be visible before testing scrolling away from the caret.
   at Private.Infrastructure.TestServices.WindowHelper.WaitFor(...)
   at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_TextBox.WaitForAndroidInputPanePositioning()
   at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_TextBox.AssertTouchCaretDoesNotLockScrollViewer(...)

Tests affected:

  • When_Touch_Selection_Does_Not_Lock_ScrollViewer_Android
  • When_Touch_Selection_Does_Not_Lock_ScrollViewer_iOS
  • When_Touch_Selection_Flick_Does_Not_Lock_ScrollViewer_Android
  • When_Touch_Tap_Does_Not_Lock_ScrollViewer_Android
  • When_Touch_Tap_Empty_Does_Not_Lock_ScrollViewer_Android

The tests within a group fail together. The two Touch_Selection_* variants always fail in the same run (Android group 3), and Touch_Selection_Flick fails together with Touch_Tap (group 0). This points to the shard's emulator not showing the input pane, rather than a problem in one test body.

Master builds with this failure:

  • 238797 (Android Skia, group 3)
  • 239161 (Android WebGPU, group 3)
  • 239427 (Android Skia, group 3)
  • 239637 (Android+NativeAOT, group 3)
  • 238925 (Android Skia, group 0)
  • 240511 (Android+NativeAOT, group 0)

That's 12 of the 212 master builds in the last 30 days with a failure in this family. It also shows up on PR builds, for example 239030, 239522 and 240835. The test passes when the lane's retry runs it in isolation.

WaitForAndroidInputPanePositioning was added in e11d10b (test(text): synchronize flyout and touch fixtures). It calls InputPane.TryShow(), which returns true, and then waits the default WaitFor timeout for InputPane.Visible, which never becomes true.

There's a second, rarer failure mode in the same family. In 238242 (Android WebGPU, group 2), When_Touch_Tap_Empty_Does_Not_Lock_ScrollViewer_Android failed on its final assertion:

the ScrollViewer must not scroll back to the focused TextBox (box 663,100,280,40, viewport 643,80,320,300)

Expected behavior 🎯

The tests either get a visible input pane reliably, or don't depend on the soft keyboard actually appearing on the CI emulator.

How to reproduce it (as minimally and precisely as possible) 🔬

Not reproduced locally. It's intermittent on the CI Android emulators (API 34, google_apis_playstore). Run the Android runtime tests with a filter on When_Touch_ in Given_TextBox, repeatedly.

Workaround 🛠️

The lane's retry clears it.

Affected platforms 📱💻🖥️

Android

Uno.Sdk version (and other relevant versions) 📦

master (2026-10-22, e875aa5)

IDE version 🧑‍💻

N/A

Anything else we need to know? 💬

Possible causes worth checking:

  • TryShow() is accepted, but the IME doesn't come up on the emulator, for example because of a hardware-keyboard setting or because the IME isn't ready yet.
  • Visible isn't updated from the window-insets callback within the timeout.

The input-pane wait could also be skipped when the pane doesn't appear, since the scroll-lock regression these tests guard doesn't need the keyboard to be visible.

Known flaky tests are tracked in #9080.

Activity

  1. added
    kind/bug
    platform/android 🤖
    area/tests 🧪
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tests 🧪kind/bugplatform/android 🤖

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions