Repository navigation
test: answer obligation fixtures through logged picks, and expect a press to answer at once - #7350
Merged
Merged
Conversation
…ress to answer at once #7325 made a widget that asks say whether its question is answered, on each act and undo, and stopped markup alone from answering. Twenty-two browser tests still relied on the earlier rule, and `tests/browser` runs only on pushes to main, so #7325's own CI never ran them. - Fixtures whose answered question was answered by `selected` in markup now log the user's pick through admission. `OBLIGATIONS_PAGE` gets it from `serve_obligations`, which every caller now uses, so the page reads the same everywhere: four open obligations and one answered. - Events the tests post to a widget that asks carry `answered`: a draft's edit answers it, and a playground's tune answers nothing. - Three tests asserted that a press leaves its question open until the server's reading arrives, which is the wait #7325 removed. They now assert the new behavior: the count moves, On Me drops the row, and the question reads as answered, all while the event is still held. The answered row keeps the agent's reply it carries in `done`, so nothing drops out of the queues. `test_admission_keeps_the_obligation_open_until_the_answer_is_in_the_log` becomes `test_a_press_answers_its_obligation_before_the_log_admits_it`. No product code changes. Closes #7346
This was referenced Nov 27, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 27, 2026
…res (#7419) Four of the five journeys in #7401 still expected behavior that #7325 deliberately replaced. One of them, the side list's journey, also still expected the tab names from before #7403. #7325 made a widget that asks say whether its question is answered, so a press answers or reopens the question at once. It also stopped an answer written only into markup from answering. This PR changes only the four tests and keeps all of #7325's and #7403's intent, so no product behavior moves. - **`test_a_link_into_the_page_previews_where_it_points`** (both engines): the decision's answer came only from `selected` in `LINKS_PAGE`'s markup. The test now logs the user's pick through `append_command`, as #7350 did for `OBLIGATIONS_PAGE`. - **`test_a_side_list_is_a_queue_beside_the_item_it_opens`**: an undo now reopens the question in its own press. So while the undo's POST is held, the row shows On Me's symbol and no answer. The test used to expect the answer to stay until the log admitted the undo. - The same side-list journey also asserted each row's accessible name as its label alone, with descriptions such as `sev a · suggested fix. Answered: Fix`. #7403 names an `lf-tabs` row by the words it shows (label, summary, answer line) and describes it by the state those leave out, but it updated only the browser tests. The journey now expects names such as `Ticket a sev a · suggested fix Fix` and descriptions `To answer` / `Answered`, and finds rows by those names. - **`test_a_settled_delivery_activates_one_fresh_document_with_continuity`**: the held pick answers the page's only question at once, so nothing waits on the user and the tab title has no `(1)` count. The test now expects `Live first`, which still proves the first document's head stands while the delivery is held, since the second revision's title is `Live second`. - **`test_a_finger_reaches_the_page_commands_its_keys_reach`**: `UNDO_PAGE` answers its question only through markup, so the undo reopens it. While a question waits on the user, a tap on the leaf opens On Me (`leafOpens`), not the menu. The test now picks again before it reaches the leaf's menu. **Verification.** All five node ids failed on `15536dfc8` with the errors the issue lists. At `e76edf860`, after #7403's naming change, all four of this PR's tests pass locally, and pre-commit passes on the changed files. **What this leaves.** The fifth journey, `test_presses_and_fills_leave_no_element_naming_stale_keys[data-explorer]`, shows a panel layout defect, not a stale test. Pressing *Build query* on the On Me card replaces the press-height commit button with a three-line `Answered: …` text, which grows `.lf-fp-answers` from 37 to 93 px. The card keeps its height, so the third line is clipped. Before #7325 the same growth happened at `849f305d2`, but it arrived with the server's reading, so the swap watch didn't count it as part of the press. How the panel should fit a long answer is a design choice, and it stays on #7401. Refs #7401 — automated triage --------- 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.
This fixes the 22 browser tests that #7325 left red on
mainand changes no product code. #7325 made a widget that asks say whether its question is answered (answeredon each act and undo) and stopped markup alone from answering. These tests still followed the old rule, and sincetests/browserruns only on pushes tomain, #7325's own CI never ran them. Each fix follows #7325's intent, so no behavior it introduced is given back.selectedon an option:OBLIGATIONS_PAGE, the picked group in the commenting test and the side-tabs page. They now log the user's pick throughappend_commandinstead, the way admission takes it.OBLIGATIONS_PAGEgets its pick from a newserve_obligationshelper, and all of its callers use the helper, so the page always holds four open obligations and one answered one. Logging the pick also hands the agent an update, so the commenting test now looks for the comment's row on On Agent instead of counting every row there.answered. The draft edit now sendsanswered: true. The async-body widget doesn't declareawaits, so its edit still sends nothing. The playground'stunesendsanswered: false, matching how Let a widget say when its question is answered, so a press moves the deck on at once #7325's owntest_on_paneledit treats a tune.AGENTS.md, "Responsiveness"). They now check that, while the event is held, the count moves, On Me drops the row and the question reads as answered. The answered row keeps the agent's reply it carries indone, so nothing drops out of the queues before the reading arrives.test_admission_keeps_the_obligation_open_until_the_answer_is_in_the_logis renamedtest_a_press_answers_its_obligation_before_the_log_admits_it.Verification. I ran all 22 tests by node id. They failed on
983d688fe, the same 22 as run 45920651738, and pass on this branch. The 12 other tests whose fixture moved toserve_obligations, two of them journeys, pass too, as doestest_render_aim's test that serves a variant ofOBLIGATIONS_PAGEwithout the pick. Pre-commit passes on the changed files.Closes #7346 — automated triage