Skip to content

Align browser question tests with widget-owned asks - #3117

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-39017954731
Oct 17, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-39017954731

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

The lf-ask cutover in #3114 left browser tests expecting implicit prose questions and the old “ask” label. This updates those tests to register questions with lf-ask and 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.

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
leaf-agent merged commit 5ea02dd into main Oct 17, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39017954731 branch October 17, 2026 11:19
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]>
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.

1 participant