feat(defaults): trim scroll action weight wiring

This commit is contained in:
pj committed 2026-06-02 09:09:17 +05:30
1 parent bdef4a641a
commit e0d3b20f42
1 file changed
+1 -17
+1 -17
View File
@@ -1,24 +1,8 @@
import { doubleTaps, scrolls, swipes, taps, typing, weighted } from "../actions.ts";
import type { ActionGenerator } from "../types.ts";
export { doubleTaps, pressKeys, scrolls, swipes, taps, typing, waitOnce } from "../actions.ts";
// longPresses is an opt-in generator: not part of defaultActions, but authors
// can include it in their own weighted() set.
export { longPresses } from "../actions.ts";
export { doubleTaps, scrolls, swipes, taps, typing } from "../actions.ts";
// Broad exploration: tap, type edge-case values, scroll to reveal content, and
// swipe. Layer it under targeted flows so the fuzzer wanders the whole app while
// still driving the paths an author wrote. It omits the hardware back key:
// backing out past the app's root exits the app under test, and exploration must
// stay inside it.
//
// Weights are relative integers, not percentages: the picker scales each draw by
// their total, so only the ratios matter and any one can be retuned on its own.
// Tap and type are co-primary (typing variety is what exercises input
// validation), scroll is the major reveal behavior at half a primary, swipe is a
// secondary gesture, and doubleTaps is rare but kept because it is the only
// default source of sub-100ms event spacing, which keeps race-window bugs
// (double-submit, init races) reachable.
export const defaultActions: ActionGenerator = weighted(
[100, taps],
[100, typing],