mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 19:47:10 +00:00
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:
1 parent
b7d624662b
commit
c61114b2bb
2 files changed
+13
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user