mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
feat(spec): add defaultActions bundle
This commit is contained in:
1 parent
9ca16e7627
commit
c8528af12b
2 files changed
+16
No files matched your search
@@ -0,0 +1,14 @@
|
|||||||
|
import { pressKey, swipes, taps, typing, weighted } from "../actions.ts";
|
||||||
|
import type { ActionGenerator } from "../types.ts";
|
||||||
|
|
||||||
|
export { pressKey, swipes, taps, typing, waitOnce } from "../actions.ts";
|
||||||
|
|
||||||
|
// A broad exploration generator: tap things, type edge-case values into fields,
|
||||||
|
// swipe, and occasionally press back. Layer it under targeted depth flows so the
|
||||||
|
// fuzzer wanders the whole app while still driving the paths an author wrote.
|
||||||
|
export const defaultActions: ActionGenerator = weighted(
|
||||||
|
[50, taps],
|
||||||
|
[30, typing],
|
||||||
|
[10, swipes],
|
||||||
|
[10, pressKey],
|
||||||
|
);
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export * from "./properties.ts";
|
||||||
|
export * from "./actions.ts";
|
||||||
Reference in new issue
Block a user