summaryrefslogtreecommitdiff
path: root/test/snapshots/images.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/images.snap')
-rw-r--r--test/snapshots/images.snap23
1 files changed, 14 insertions, 9 deletions
diff --git a/test/snapshots/images.snap b/test/snapshots/images.snap
index 0eccda49..6b9a53d0 100644
--- a/test/snapshots/images.snap
+++ b/test/snapshots/images.snap
@@ -1,7 +1,8 @@
# image panes: right-click a .ppm opens petscii glyph art (no kitty in the
-# harness). The tag is an ordinary `img <path> New Del` — its renderer toggles are
-# builtins now, pressed under SPC t (the old tag words sat past the pane's
-# right edge, so clicking them only ever hit the neighbouring shell's tag).
+# harness). The tag starts with the renderer's plain state fields followed by
+# its path and `New Del`; the fields are display-only, while their toggles are
+# builtins under SPC t (the old clickable tag words sat past the pane's right
+# edge, so clicking them only ever hit the neighbouring shell's tag).
ppmdiag pic.ppm
start 30 150 -n 3
wait 8000 pic.ppm
@@ -36,12 +37,16 @@ key a
stable 700 15000
snap no-ascii
# the tag takes an edit like any other pane's now — nothing live left in it to
-# protect, so the image early-return in enterTagEdit is gone. Col 42 is the
-# FIRST EDITABLE column (right after "img <path>"): a tag column is a column of
-# the whole rendered tag, and the live prefix is read-only, so a click at col 20
-# would land in the path and the typing below would be inert.
-press left 42 2
-release left 42 2
+# protect, so the image early-return in enterTagEdit is gone. The image-state
+# prefix is wider than this source-local column, so widen the grid for this
+# final assertion. (A column-border drag intentionally takes width from only
+# one neighbour, which cannot expose this 82-column prefix.) Then click the
+# visible tail itself, at its `New`. This proves the image tag is an ordinary
+# editor rather than accidentally typing at a clipped read-only path.
+resize 30 400
+stable 400 5000
+press left 82 2
+release left 82 2
stable 400 5000
text Zork
stable 400 5000