Repository navigation
Align browser question tests with widget-owned asks - #3117
Merged
Merged
Conversation
The lf-ask cutover removed implicit prose questions and made each widget name its queue row and comment command. Give test questions an lf-ask, expect Question in the interface, and keep one ask open when testing On me filtering. The feature gallery now has one waiting thread because its prose opening is no longer an ask. The focused browser cases pass.
leaf-agent
added a commit
that referenced
this pull request
Oct 17, 2026
The [failed main run](https://github.com/max-sixty/leaf/actions/runs/39021953303) reached focus on the first question during the `Shift+m` walk, but the test read the same scroll position before and after it. `scroll_settled` can report a quiet page before the outer scroll starts. This change waits until each walk has moved the document, then checks that it settles at the expected position and still records one history entry. A walk that never scrolls still fails. The run's other 11 failures were stale question markup and wording expectations addressed by merged #3117. This PR covers the remaining scroll-test race. Verification: the unchanged test passed 18/18 repeated local runs on current `main`, so the intermittent failure did not reproduce locally. The focused test passed with this change (`1 passed`); `git diff --check` passed. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 17, 2026
The [scheduled main run](https://github.com/max-sixty/leaf/actions/runs/39026483536) still had nightly browser and journey failures after the `lf-ask` browser repair in #3117. This updates the tests to the current user-visible behavior: an agent reply needs an explicit question to create ask attention; the contents map rests as a narrow spine; the Page Map includes the new group and both margin entries. It also keeps the render and rollback probes aligned with their current markup and paint sequence, and closes a background draft mirror after its cross-tab assertion so the subsequent foreground layout check observes only that page. The shipped examples now carry a word-answer `lf-ask` rather than a seeded decision on a widget in a message. The corpus check still verifies the carried widget and reply render; the focused frozen-widget action test in `tests/browser/test_render_application_boundary.py` verifies an action replays into a thread widget. The visual-review Resume writing failure from the same run has a separate runtime fix. Verification: the 15 affected focused cases passed locally on this exact branch (`uv run pytest -q -n0 --tb=short`, selected node IDs). Co-authored-by: leaf-agent <[email protected]>
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.
The
lf-askcutover in #3114 left browser tests expecting implicit prose questions and the old “ask” label. This updates those tests to register questions withlf-askand read the widget’s “Question” label, so the tests continue to cover the intended navigation, reply, and queue behavior. It also checks the feature gallery’s one waiting thread and keeps one question open while testing the On me filter.The failed main run reported 13 browser failures. Eleven are the stale expectations addressed here; #3116 already corrected the command-reference wording failure. The remaining viewport assertion in
test_comment_follows_a_thread_standing_instead_of_an_earlier_draft[]passed on the unchanged runtime in the focused rerun, so this PR does not claim to repair its intermittent failure; #3118 tracks that case.Verification: the focused browser run passed 13 selected cases and parameter variants. The remaining two had stale assertions; both passed on a focused rerun after correction. The viewport test passed for both parameter variants on the unchanged runtime.