diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/behaviour/keys.zig | 8 | ||||
| -rw-r--r-- | test/process/tty_boot.zig | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig index 241468ac..6af3d1ad 100644 --- a/test/behaviour/keys.zig +++ b/test/behaviour/keys.zig @@ -24,13 +24,11 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu }) |case| { try s.write(dot, "6 6"); try s.keys(case.keys); - // The answer is typed into the tag's head (walk UI), shown in place - // of the tag's own text, which it never touches; out of rest the - // path is hidden too (UX D1): the head starts the tag. + // The answer is typed into the head, on the row under the tag, + // which stays as at rest, its own text untouched (UX DESIGN M1, M2). try s.keys("zq"); _ = try s.where(case.shown); - const head = try s.read(tag); - try std.testing.expect(std.mem.startsWith(u8, head, case.shown[1..])); + try std.testing.expectEqualStrings("/test.txt Del keep", try s.read(tag)); try s.keys("\x1b"); try std.testing.expectError(error.NotOnScreen, s.where(case.shown)); try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/ctl", .{n})), " mode:normal ")); diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig index 2a4fea00..09311e8f 100644 --- a/test/process/tty_boot.zig +++ b/test/process/tty_boot.zig @@ -854,7 +854,9 @@ fn msg(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // ...and a message arriving UNDER an armed prompt does not disturb it: a second // external write reloads the pane and posts one, the row stays the prompt's. try t.run("printf 'AGAIN\\n' > a.txt"); - try t.wait(10000, "AGAIN"); + // (The pane's one line is under the prompt's head, on the row under the + // tag (UX DESIGN M2): the notice row's count says the second reload.) + try t.wait(10000, "×2"); try t.stable(700, 15000); try t.snap("prompt-wins"); // Esc abandons the input, and the very key that abandoned it is also the key |
