Skip to content

test: answer obligation fixtures through logged picks, and expect a press to answer at once - #7350

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7346
Nov 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7346

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This fixes the 22 browser tests that #7325 left red on main and changes no product code. #7325 made a widget that asks say whether its question is answered (answered on each act and undo) and stopped markup alone from answering. These tests still followed the old rule, and since tests/browser runs only on pushes to main, #7325's own CI never ran them. Each fix follows #7325's intent, so no behavior it introduced is given back.

  • Answers written in markup. Some fixtures answered a question only with selected on an option: OBLIGATIONS_PAGE, the picked group in the commenting test and the side-tabs page. They now log the user's pick through append_command instead, the way admission takes it. OBLIGATIONS_PAGE gets its pick from a new serve_obligations helper, 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.
  • Posted events without answered. The draft edit now sends answered: true. The async-body widget doesn't declare awaits, so its edit still sends nothing. The playground's tune sends answered: false, matching how Let a widget say when its question is answered, so a press moves the deck on at once #7325's own test_on_panel edit treats a tune.
  • Tests of the old wait. Three tests asserted that a press leaves its question open until the server's reading arrives, which is the wait Let a widget say when its question is answered, so a press moves the deck on at once #7325 removed (root 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 in done, so nothing drops out of the queues before the reading arrives. test_admission_keeps_the_obligation_open_until_the_answer_is_in_the_log is renamed test_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 to serve_obligations, two of them journeys, pass too, as does test_render_aim's test that serves a variant of OBLIGATIONS_PAGE without the pick. Pre-commit passes on the changed files.

Closes #7346 — automated triage

…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
@leaf-agent
leaf-agent merged commit 25f6478 into main Nov 27, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7346 branch November 27, 2026 05:03
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]>
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.

22 obligation and answer browser tests: fixtures still answer in markup or post acts without answered after #7325

1 participant