test(runner): make focusTapSettle injectable so apply tests don't sleep 250ms

The focus-tap settle was a const, so five InputText apply tests each blocked the full 250ms. Make it a package var and shorten it per-test with cleanup.
This commit is contained in:
pj committed 2026-06-11 09:31:08 +05:30
1 parent b7d624662b
commit c61114b2bb
2 files changed
+13 -2

No files matched your search

+2 -2
View File
@@ -463,8 +463,8 @@ const foregroundReadyAttempts = 8
// focusTapSettle is the pause after tapping a field to focus it, before typing.
// Long enough for focus to land, short enough to avoid the ~500ms-1s full
// settle the keyboard's open animation would otherwise cost every InputText
// step on a physical device.
const focusTapSettle = 250 * time.Millisecond
// step on a physical device. A var so tests can shorten it.
var focusTapSettle = 250 * time.Millisecond
// waitForForeground blocks until the app under test is actually on screen, so
// the first observe never captures a leftover screen or a freshly-booted