Repository navigation
Open the panel-thread stills states under the panel choice, which threads about a passage now need - #7125
Conversation
…eads about a passage now need Since #6796 let the user choose where threads about a passage open, a row in Threads opens such a thread as a margin card on a desktop window until the user chooses the panel. Fourteen stills states drove a Threads row and waited for the floating panel's view of the thread, which never came, so they failed in Chromium and Firefox alike: floating-thread and the states built on it (reaction-palette, reaction-pressed, thread-code-copy, floating-thread-unread, floating-thread-retitled, panel-resolved, panel-new-reply, thread-reply-photo), progress-messages, thread-picture and image-preview through open_thread, and plan-panel-reply-long and plan-panel-reply-empty. Each subject, the panel's view of a thread, still exists for a user who chose the panel, so these drives now make that choice first, as tests do, and capture the panel view their docstrings describe. detached-thread was unaffected: a thread whose passage is gone always opens in the panel. The choice's helper moves from tests/browser/threads to leaf_dev.browser, its one home, and every test imports it from there.
leaf-agent
left a comment
There was a problem hiding this comment.
summary-panel fails the same way and isn't among the 14. summary_panel clicks the plan's stop thread (9303f850…, anchored to "The trusted supervisor owns shutdown.") from Threads at the default desktop window, then waits for .lf-summary-checkpoint in the panel's thread view. On this head, leaf-dev probe --state summary-panel ends in summary-panel: Locator expected to be visible with #lf-margin-preview laid out instead. Adding choose_threads_in_panel(page) before its go_to_threads(page) makes the same probe find the checkpoint in the panel. The function is outside the diff, so there's no inline suggestion. I can push that one line if you'd like, and its docstring could take the same "by a user who chose the panel for threads" wording as the others.
Fifteen
leaf-dev stillsstates that open a thread from Threads and capture the floating panel's view of it failed in Chromium and Firefox:floating-threadand the states built on it (reaction-palette,reaction-pressed,thread-code-copy,floating-thread-unread,floating-thread-retitled,panel-resolved,panel-new-reply,thread-reply-photo),progress-messages,thread-picture,image-preview,summary-panel,plan-panel-reply-longandplan-panel-reply-empty. Since #6796, which lets the user choose where threads about a passage open, a Threads row on a desktop window opens such a thread as a margin card, so the drive's wait for the panel's thread view timed out.The panel's view of a thread still exists for a user who has chosen the panel, so each drive now makes that choice first, as the browser tests already do, and the crop shows what the state's docstring describes. The helper that makes the choice moves from
tests/browser/threadstoleaf_dev.browser, and every test imports it from there, so there is one copy.Max asked for this fix. Tests: every one of the 15 states, plus
detached-thread(unaffected, since a thread whose passage is gone always opens in the panel), runs throughleaf-dev probe --statein Chromium and Firefox, and the screenshots show the panel's thread view.leaf-dev stillsruns for the three states first reported, twotest_threads_in_panelbrowser tests pass with the moved helper, and the changed test modules collect.