diff options
Diffstat (limited to 'test/process/tty_terminals.zig')
| -rw-r--r-- | test/process/tty_terminals.zig | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig index 9f7c9308..838b2aea 100644 --- a/test/process/tty_terminals.zig +++ b/test/process/tty_terminals.zig @@ -226,12 +226,13 @@ fn ttyhelp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // row 0, which is not a pane, so the terminal never saw it. try t.key("c-b"); try t.stable(600, 10000); + // SPC ? is Help in the focused pane's tag (pick-ui SPEC §4.5): a field + // typed in, the leaves it matches in rows under the tag, the cursor's + // documentation beside them. try t.key("space"); try t.key("?"); - // The bare-tty boot now opens an empty pane under the shell, so the index is - // half as tall: wait on a row that is on screen. What the leader route - // produced is the snapshot below, not this. - try t.wait(10000, "SPC ? Help"); + try t.send("tutor"); + try t.wait(10000, "SPC h t · Tutor · help"); try t.stable(700, 15000); try t.snap("leaderworks"); try t.done(); @@ -590,7 +591,8 @@ fn reflow(gpa: std.mem.Allocator, exe: [:0]const u8) !void { fn respawn(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "respawn"); defer t.deinit(); - try t.start(31, 140, &.{ "-n", "3" }); + // A row more than its panes take: the notice row under them. + try t.start(32, 140, &.{ "-n", "3" }); try t.wait(8000, "Newcol Joincol"); try t.stable(700, 20000); // middle-click Del on the lower-left pane's tag: the pane id is freed while |
