mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(spec): cover LongPress and Scroll runtime members
This commit is contained in:
1 parent
792010c6d0
commit
b23a8efbdb
2 files changed
+15
No files matched your search
@@ -143,6 +143,8 @@ function installFakeRuntime(): RecordedRuntime {
|
||||
},
|
||||
tap: ({ on }) => ({ kind: "Tap", on }),
|
||||
doubleTap: ({ on }) => ({ kind: "DoubleTap", on }),
|
||||
longPress: ({ on }) => ({ kind: "LongPress", on }),
|
||||
scroll: ({ direction, in: container }) => ({ kind: "Scroll", direction, in: container }),
|
||||
inputText: ({ into, text }) => ({ kind: "InputText", into, text }),
|
||||
swipe: ({ from: fromPoint, to, durationMillis }) => ({
|
||||
kind: "Swipe",
|
||||
@@ -154,6 +156,8 @@ function installFakeRuntime(): RecordedRuntime {
|
||||
wait: ({ durationMillis }) => ({ kind: "Wait", durationMillis }),
|
||||
taps: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
doubleTaps: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
longPresses: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
scrolls: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
typing: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
swipes: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
waitOnce: { __sanderlingActionGenerator: true, generate: () => [] },
|
||||
|
||||
Reference in new issue
Block a user