Skip to content

test: update four options and margin tests for the floated pick and click-opens-in-reply - #5543

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5485
Nov 5, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Four --run-main tests have been red on main since #5375 and #5410. Each fails because the test still expects behavior one of those changes replaced, so this PR updates the four tests and leaves product code alone. All four fail on current main and pass on this branch: uv run pytest --run-main over the four node ids, 8 cases.

  • Draw the options' picks, Add, Done and the margin's rows without positioned boxes #5375 made a titled card's pick the float that reserves its corner slot. Before, a ::before reserved the slot and the pick was positioned with z-index: 1.
    • test_a_quoted_widget_exhibits_without_taking_input read the slot from ::before, which no longer exists, so both cards read 0. It now measures the pick's float margin box: 0 on the exhibit, which has no mark, and >0 on the live card.
    • The pick is now unpositioned, so the binding badge positioned in the same seat paints over it and takes a press there. Playwright refuses to click the covered mark. test_a_queue_row_names_an_answer_whose_widget_module_arrives_last now presses the card. lf-options.js already takes a press on the card or on the badge as a pick.
    • test_workspace_end_room_stays_inside_the_last_reading_region clicked the mark and then walked with ArrowDown and Space. A press on the badge leaves focus on the ask, as a press on the card's words already did, so the test now focuses the mark before the walk.
  • Make a margin card act like the floating panel: Resolve moves on, a click opens in the reply #5410 made a click on a margin marker open the thread in its reply (openingPart in thread/focus.js). test_the_margin_groups_meanings_at_one_destination_without_moving_the_page still expected the reply to be unfocused after a marker click, a case Make a margin card act like the floating panel: Resolve moves on, a click opens in the reply #5410 didn't update. The test now expects it focused.

Behavior changed: a pointer press on a worn digit in a card's corner still picks, but it no longer focuses the mark. #5375 caused this change without stating it. This PR records it in the tests rather than undoing it. #5542 asks the maintainer whether that press should focus the mark.

I tried giving the badge pointer-events: none so the press would reach the mark again. That hides the badges: command-hints.js seats a badge only when hit tests find it on top, and three binding tests in test_render_options.py failed. That approach is dropped.

The margin test first failed at #5375 with a different assertion: {'needed': 1163, 'rail': 119}, in run 41876972397. That assertion passes on current main, so the only failure left was the reply focus.

Closes #5485 — automated triage

…lick-opens-in-reply

#5375 made a titled card's pick the float that reserves its corner slot,
replacing the ::before that reserved it, and left the pick unpositioned, so
the binding badge positioned in the same seat now paints over the mark and
takes a press there. #5410 made a click on a margin marker open the thread
in its reply.

- test_a_quoted_widget_exhibits_without_taking_input measures the slot from
  the pick's float margin box instead of the gone ::before.
- test_the_margin_groups_meanings_at_one_destination_without_moving_the_page
  expects a marker click to focus the reply, as #5410 made it.
- test_a_queue_row_names_an_answer_whose_widget_module_arrives_last presses
  the card rather than the covered mark; the option's click handler takes a
  press on the badge or the card as a pick.
- test_workspace_end_room_stays_inside_the_last_reading_region focuses the
  mark before its keyboard walk, since a press on the badge leaves focus on
  the ask, as a press on the card's words does.

Behavior changed: a pointer press on a worn digit in a card's corner no
longer focuses the mark; it picks as before.

Closes #5485
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.

Four options and margin tests fail on main since #5375 drew picks and margin rows without positioned boxes

1 participant