feat(verifier): add LongPress and Scroll action kinds

This commit is contained in:
pj committed 2026-05-31 18:06:29 +05:30
1 parent ae271b86e0
commit 8ffb174c1b
2 files changed
+29

No files matched your search

+5
View File
@@ -10,6 +10,8 @@ const (
ActionKindSwipe ActionKind = "Swipe"
ActionKindPressKey ActionKind = "PressKey"
ActionKindWait ActionKind = "Wait"
ActionKindLongPress ActionKind = "LongPress"
ActionKindScroll ActionKind = "Scroll"
)
// Action is a single UI interaction produced by the spec's action generator.
@@ -28,6 +30,9 @@ type Action struct {
DurationMillis int
// Key is the logical key name for ActionKindPressKey.
Key string
// Direction is the scroll direction for ActionKindScroll: one of "up",
// "down", "left", "right". Empty for every other kind.
Direction string
}
// LogEntry mirrors a logcat line captured between steps.