Skip to content

Test Space on the selected screenshot caption - #2165

Merged
max-sixty merged 4 commits into
mainfrom
fix/ci-37929061293-shot
Oct 10, 2026
Merged

max-sixty merged 4 commits into
mainfrom
fix/ci-37929061293-shot

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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.js and was established by #1788.

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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/test_render_commands.py Resolved
@max-sixty
max-sixty merged commit 78ba458 into main Oct 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/ci-37929061293-shot branch October 10, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants