Skip to content

test: answer four journeys' questions through the log, as #7325 requires - #7419

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-7401
Nov 27, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-7401

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

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 test: answer obligation fixtures through logged picks, and expect a press to answer at once #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. fix: name panel tabs, list rows, diff gutters, the trace's scale and margin entries by the words they show #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

…ess to answer at once

#7325 made a widget that asks say itself whether its question is answered, and
stopped an answer written only into markup from answering. Four journeys still
followed the old rule; each now follows #7325's intent, and no product code
changes.

- test_a_link_into_the_page_previews_where_it_points: the decision's answer
  came only from `selected` in the markup; the test now logs the user's pick.
- test_a_side_list_is_a_queue_beside_the_item_it_opens: an undo now reopens
  the question in its own press, so On Me's symbol is back while the undo is
  held, rather than after the log admits it.
- test_a_settled_delivery_activates_one_fresh_document_with_continuity: the
  held pick answers the page's one question at once, so the tab title carries
  no count; it still shows the first document's title.
- test_a_finger_reaches_the_page_commands_its_keys_reach: the undo reopens a
  question the markup alone "answered", so the leaf opens On Me; the test picks
  again before reaching the leaf's menu.

The fifth journey in the issue, the data-explorer stale-keys sweep, catches a
panel layout defect rather than a stale test, and is left open.

Refs #7401

@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.

test_a_side_list_is_a_queue_beside_the_item_it_opens still fails on this head, so the description's "5 passed" no longer holds. The test fails at line 135, expect(tabs.first).to_have_accessible_name("Ticket a"), before it reaches the assertions this PR changes. Playwright reports Actual value: Ticket a sev a · suggested fix. #7403 landed on main after this branch was verified. It names an lf-tabs row by the words the row shows: its label, its summary and its answer line. The description then keeps only the state the name leaves out ("To answer", "Answered"). #7403 updated the browser tests but not this journey, which still expects the label alone and the old Answered: Fix descriptions. Its docstring also still says "A tab's name is its label whatever the row shows". I'll push assertions that match #7403's naming. That keeps both #7325's intent and #7403's.

#7403 names an lf-tabs row by its label, summary and answer line, and
describes it by the state those leave out. The side-list journey still
expected the label alone and the old 'Answered: Fix' description, so it
failed before reaching the undo this PR changes.
@leaf-agent
leaf-agent merged commit 01f33bf into main Nov 27, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7401 branch November 27, 2026 18:08
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