fix(spec): drop hardware back from defaultActions to stay in-app

This commit is contained in:
pj committed 2026-05-28 11:24:31 +05:30
1 parent dff91095b8
commit a9b2b4b4e1
1 file changed
+7 -6
+7 -6
View File
@@ -1,14 +1,15 @@
import { pressKey, swipes, taps, typing, weighted } from "../actions.ts";
import { 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.
// and swipe. Layer it under targeted depth flows so the fuzzer wanders the whole
// app while still driving the paths an author wrote. It deliberately omits the
// hardware back key: backing out past the app's root screen exits the app under
// test, and exploration must stay within the app.
export const defaultActions: ActionGenerator = weighted(
[50, taps],
[55, taps],
[30, typing],
[10, swipes],
[10, pressKey],
[15, swipes],
);