Repository navigation
test: read the seated reply's body, not its reactions, after the panel takes its widget - #5577
Merged
Merged
Conversation
…l takes its widget #5280 gave every thread surface a message's reactions, so the seat now draws a reaction strip beside the reply's body. The test read the whole seated message and expected it to end with the reply's words, which the strip's glyphs now follow. It reads the body alone, which still holds the widget whenever the seat keeps it. Closes #5491
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.
#5280 removed the
outlet-only condition on reactions inthreadReading, so every thread surface now draws a message's reactions, the page's seat included. That follows the change's intent ("the option is gone") andthread-card.js's header, which says a reading decides nothing by its surface.test_a_seated_reply_lends_its_widget_to_the_panel_and_takes_it_backread the whole seated.lf-msgand expected its text to end with the reply's words, so the strip's glyphs (👍 ❌ 🤔 ✂️ 🔎 🎯) after them failed it.The test now reads the seat's
.lf-msg-bodyalone. The reply's widget is drawn inside that body and the reaction strip outside it (browser/runtime/thread/messages.js), so the assertion still fails if the seat keeps the widget while the panel shows the thread. No behavior moves: the test now accepts the reactions #5280 meant to draw.The test failed on main (
e99fc3aa6) with the issue's message and passes with this change (uv run pytest --run-mainon the node id).Closes #5491 — automated triage