Repository navigation
test: update four options and margin tests for the floated pick and click-opens-in-reply - #5543
Merged
Merged
Conversation
…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
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.
Four
--run-maintests 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-mainover the four node ids, 8 cases.::beforereserved the slot and the pick was positioned withz-index: 1.test_a_quoted_widget_exhibits_without_taking_inputread 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.test_a_queue_row_names_an_answer_whose_widget_module_arrives_lastnow presses the card.lf-options.jsalready takes a press on the card or on the badge as a pick.test_workspace_end_room_stays_inside_the_last_reading_regionclicked 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.openingPartinthread/focus.js).test_the_margin_groups_meanings_at_one_destination_without_moving_the_pagestill 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: noneso the press would reach the mark again. That hides the badges:command-hints.jsseats a badge only when hit tests find it on top, and three binding tests intest_render_options.pyfailed. 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