summaryrefslogtreecommitdiff
path: root/test/behaviour
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour')
-rw-r--r--test/behaviour/keys.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig
index 6a62ccd7..65c52ee7 100644
--- a/test/behaviour/keys.zig
+++ b/test/behaviour/keys.zig
@@ -25,11 +25,12 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu
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.
+ // 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.
try s.keys("zq");
_ = try s.where(case.shown);
const head = try s.read(tag);
- try std.testing.expect(std.mem.startsWith(u8, head, "/test.txt") and std.mem.startsWith(u8, head["/test.txt".len..], case.shown));
+ try std.testing.expect(std.mem.startsWith(u8, head, case.shown[1..]));
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 "));