Repository navigation
Test Space on the selected screenshot caption - #2165
Merged
Merged
Conversation
A selected screenshot caption still owns Space so the page does not scroll. Read its standing command and verify Space keeps the endpoint and scroll position, instead of expecting the command to disappear.
leaf-agent
commented
Oct 9, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The Space scroll assertion cannot detect the regression here: after focusing the selected caption, the page is already at its maximum scroll position (3884/3884 in the focused browser run). Space could fall through to page scrolling and the asserted position would stay unchanged. Give the caption room to scroll before pressing Space, and assert that headroom so the test keeps covering this behavior as the fixture changes.
# Conflicts: # tests/test_render_commands.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A selected screenshot caption still owns its Space action so the page cannot scroll when the user presses it. The nightly test expected its shortcut to disappear after selection and failed. It now checks the standing shortcut and verifies that Space keeps both the selected endpoint and the page's scroll position.
The main CI run and preceding run failed this test. I reproduced the assertion locally, then reran the exact node after the change: 1 passed. The widget's selected-caption behavior is declared in
lf-shot.jsand was established by #1788.