summaryrefslogtreecommitdiff
path: root/test/behaviour/addons.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/addons.zig')
-rw-r--r--test/behaviour/addons.zig11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/behaviour/addons.zig b/test/behaviour/addons.zig
index 90f4e383..0b0555c2 100644
--- a/test/behaviour/addons.zig
+++ b/test/behaviour/addons.zig
@@ -411,8 +411,10 @@ test "addons: a picker shows a file of an addon's kind through its kind in the p
try s.expect(body, "the notes\n");
try std.testing.expectEqualStrings(index, try s.read("/index"));
// Enter: the kind's pane where a Look puts it; the reading pane keeps
- // its text.
- try s.keys(" ffseven\n");
+ // its text. (The listing is the next frame's, as for the keyboard.)
+ try s.keys(" ffseven");
+ s.tick();
+ try s.keys("\n");
s.tick();
const opened = try paneOf(&s, "fake");
try std.testing.expect(opened != pane);
@@ -516,7 +518,10 @@ test "addons: Enter on a picture in a picker opens its kind's pane, never its by
defer unload(&s, "image");
const dir = try dirOf(&s, &tmp);
const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir}));
- try s.keys(" ffpic\n");
+ // The listing is the next frame's, as for the keyboard.
+ try s.keys(" ffpic");
+ s.tick();
+ try s.keys("\n");
s.tick();
try s.expect(s.at("/pane/{d}/body", .{pane}), "the notes\n");
const image = try paneOf(&s, "image");