Repository navigation
test: open element threads from their margin entry, and press passages on their words - #7337
Merged
Merged
Conversation
…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
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 browser tests have failed on
mainsince #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/browserruns only on pushes tomain, 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_markandtest_a_shadow_visual_surface_is_clipped_by_its_hostnow 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 fortest_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_pageanchors 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_openandtest_a_press_on_words_the_panel_opens_over_brings_them_clearpress those words withword_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
mainand pass with this change, and so does the rest oftest_threads_in_panel.py, which sharesthreads_page.Refs #7334 — automated triage