Skip to content

test: open element threads from their margin entry, and press passages on their words - #7337

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7334-element-thread-tests
Nov 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7334-element-thread-tests

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Four browser tests have failed on main since #7322. That change made a press anywhere in an element stop opening the element's thread: the thread now opens only from its margin entry, and a press opens a passage's thread only on its inked words. tests/browser runs only on pushes to main, so #7322's own CI didn't run these four, and each still opened a thread by pressing an element.

  • test_render_aim.py: test_a_non_geometry_visual_surface_uses_one_box_for_aim_and_mark and test_a_shadow_visual_surface_is_clipped_by_its_host now open the part's thread from its margin entry, as Take the pointer for a thread only on its marked words, not anywhere in a marked element #7322 did for test_a_visual_surface_narrows_paint_without_narrowing_semantic_interaction. The shadow test then hovers the surface before Alt, since the pointer no longer rests on it. What each test asserts about the mark and the aim is unchanged.
  • test_threads_in_panel.py: threads_page anchors each section's thread to words in the section rather than to the whole section. test_open_in_panel_and_show_on_page_choose_where_threads_open and test_a_press_on_words_the_panel_opens_over_brings_them_clear press those words with word_point. A locator click on the <p> would press the middle of its box, past the end of its short text.

This keeps #7322's behavior and changes only how the tests reach the thread. All four fail on main and pass with this change, and so does the rest of test_threads_in_panel.py, which shares threads_page.

Refs #7334 — automated triage

…s on their words

#7322 made an element's thread open from its margin entry alone, not
from a press anywhere in the element. Four browser tests still pressed
the element: the two visual-surface tests in test_render_aim now open
the thread from its margin entry and hover the surface before aiming,
and the panel tests anchor each section's thread to a passage and press
its words. Each failed on main since #7322 and passes with this.

Refs #7334
@leaf-agent
leaf-agent merged commit e1081aa into main Nov 27, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7334-element-thread-tests branch November 27, 2026 02:10
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