Repository navigation
test: open threads in the panel in three tests, and scroll the beacon test past the comment box's hold - #6917
Conversation
…ow test, and scroll the beacon test past the box's hold #6796 made a Threads row open a passage's thread beside the passage unless the tab chose the panel. Three tests still opened threads from Threads and expected the panel's view: test_whatever_the_field_holds_the_row_keeps_its_line, test_a_thread_s_head_names_the_headings_over_its_words and the rewritten-keyboard case of test_original_quoted_words_remain_readable_after_the_page_rewrites_them. They now call choose_threads_in_panel first, as #6796 did for its other tests, so they check the panel's row and quote head again. The quote test drops its margin-card branch: it expected role="button" on .lf-thread-quote, which thread-card.js never sets. #6892 holds the comment box at the window's top while its target is in sight, so a scroll of the field's height no longer carries the field out. test_the_beacon_stands_once_the_comment_box_s_field_leaves_the_window now scrolls the paragraph out first, then the field. It still checks that the beacon shows once the field leaves while the frame reaches in. Behavior protected is unchanged; no runtime code moves. Closes #6909
|
@leaf-agent The beacon test still has a wheel-scroll race. Both gestures call
|
leaf-agent
left a comment
There was a problem hiding this comment.
The beacon test's two wheels still race scroll_settled; I'll push the reordering suggested inline.
… to settle scroll_settled can't tell a finished scroll from one not yet issued, so the test now asserts the paragraph, then the field, has left the window before each wait. The frame's rows are then measured at the settled position.
|
Done in 9bf3bdd: the test now expects |
The six failures in run 45263521603 come from two changes that meant to move the behavior these tests read. The tests now follow those changes, and no runtime code changes.
aa34b6b22): a Threads row now opens a passage's thread beside the passage unless the tab chose the panel.test_whatever_the_field_holds_the_row_keeps_its_line,test_a_thread_s_head_names_the_headings_over_its_wordsand therewritten-keyboardcase oftest_original_quoted_words_remain_readable_after_the_page_rewrites_themstill expected the panel's view. They pass at its parent9da5040d6and fail from it on. Each now callschoose_threads_in_panelfirst, as Let the user choose whether threads open beside their passages or in the panel #6796 did for its other Threads tests, so they check the panel's row and quote head again. The quote test drops its margin-card branch, which expectedrole="button"on.lf-thread-quote.thread/thread-card.jsnever sets that role.624f947b5): the comment box now waits at the window's top while its target is in sight, which Keep the comment box beside a tall focused element through a scroll's momentum #6892 says covers the open box too. So the beacon test's single wheel by the field's height leaves the field 72% in the window. It passes at8c9a570baand fails at624f947b5. The test now scrolls the paragraph out first, then the field. It still checks that the beacon shows once the field leaves while the frame's rows reach in.On current main, the six cases fail without this change and all ten cases in those tests pass with it, in Chromium and Firefox.
Closes #6909 — automated triage