diff options
Diffstat (limited to 'test/process/tty_boot.zig')
| -rw-r--r-- | test/process/tty_boot.zig | 78 |
1 files changed, 15 insertions, 63 deletions
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig index 51aea53b..6373de84 100644 --- a/test/process/tty_boot.zig +++ b/test/process/tty_boot.zig @@ -122,64 +122,16 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // The full index includes commands without leader paths. try t.key("space ?"); - try t.wait(10000, "pardes builtins, and how to run each:"); + try t.wait(10000, "pardes builtins: each one's keys and its name"); try t.wait(10000, "ClipPasteBefore"); - try t.key("g e"); - // Every builtin added since adds an index line, and one wheel tick is one row - // (config.wheel_rows): scroll far enough to expose Look and Exec above the - // bottom viewport while keeping the same pane geometry for the later clicks. - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); - try t.wheel("up", "110", 50); + // The words with no SPC path come last, each under its documentation: + // a search for Look's row, the one line that starts with blanks and + // `Look ` (its documentation's lines start with a letter). + try t.key("/"); + try t.send("^ +Look "); + try t.key("enter"); try t.wait(10000, "Look enter, right-click"); try t.wait(10000, "Exec tab, middle-click"); - try t.wait(10000, "Filter"); - try t.wait(10000, "Theme"); try t.stable(700, 15000); // n moves through look-able text; it must not execute command names. @@ -196,8 +148,9 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(10000, "Tutor"); try t.stable(700, 15000); try t.snap("docs-group"); - try t.press("middle", "@Tutor", 16); - try t.release("middle", "@Tutor", 16); + // Tutor's row, under the documentation of the three before it + try t.press("middle", "@Tutor", 24); + try t.release("middle", "@Tutor", 24); try t.wait(10000, "PARDES TUTOR"); try t.stable(700, 15000); try t.snap("tutor-from-index"); @@ -539,7 +492,7 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // Executing Help as text opens the full index, not a filtered group. try t.press("middle", "@Help", 4); try t.release("middle", "@Help", 4); - try t.wait(10000, "pardes builtins, and how to run each:"); + try t.wait(10000, "pardes builtins: each one's keys and its name"); try t.wait(10000, "ClipPasteBefore"); try t.key("space h ?"); try t.wait(10000, "under SPC h"); @@ -562,16 +515,15 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 15000); try t.key("space ?"); - try t.wait(10000, "pardes builtins, and how to run each:"); + try t.wait(10000, "pardes builtins: each one's keys and its name"); try t.wait(10000, "ClipPasteBefore"); // PDF commands depend on the build; these toggles do not. try t.key("space t ?"); try t.wait(10000, "under SPC t"); - try t.wait(10000, "Ascii"); - try t.wait(10000, "Palette"); - try t.wait(10000, "Petscii"); - try t.wait(10000, "Wrap"); + // its first rows: each word's documentation under it, the rest below + try t.wait(10000, "SPC t a Ascii"); + try t.wait(10000, "SPC t c Changes"); // SPC w is Window itself now, not a group; the column group stands in try t.key("space c ?"); try t.wait(10000, "under SPC c"); |
