Expand terminal input E2E coverage

This commit is contained in:
slhx agent
2026-06-21 18:26:02 +02:00
parent 9aafe0e01c
commit 0d4d0ec425
4 changed files with 153 additions and 62 deletions
+7 -30
View File
@@ -67,56 +67,33 @@ fn containsForbiddenToken(line: []const u8) bool {
return false;
}
test "regular: mobile trace performs code edit with leader save and quit" {
test "regular: mobile trace performs normal-mode edit with leader save and quit" {
const trace =
\\open
\\type i
\\type call
\\key space
\\type n
\\key space
\\key p
\\key p
\\type i
\\type arg
\\key right
\\key space
\\type n
\\key space
\\key p
\\key s
\\open safe
\\type r
\\type x
\\key space
\\key w
\\key space
\\key q
\\
;
try runMobileTask(std.testing.allocator, trace, "call(arg)/");
try runMobileTask(std.testing.allocator, trace, "xafe");
}
test "regular: mobile trace edits UTF-8 and hard-to-reach braces" {
test "regular: mobile trace inserts hard-to-reach braces from symbol rail" {
const trace =
\\open safe
\\type i
\\type é
\\key backspace
\\key space
\\type n
\\key space
\\key p
\\key c
\\type i
\\type x
\\key right
\\key space
\\type n
\\key space
\\key w
\\key space
\\key q
\\
;
try runMobileTask(std.testing.allocator, trace, "{x}safe");
try runMobileTask(std.testing.allocator, trace, "{}safe");
}
test "regular: mobile search entry is reachable and recoverable without desktop chords" {