Repository navigation
test: walk back to the thread past the kept comment in the comment-targets journey - #6746
Merged
Merged
Conversation
…rgets journey Since #6675, the thread walk stops at each comment the user began and put away. The journey keeps a comment at Paragraph 3 and then pressed `t` to travel to the open thread at Paragraph 41, so `t` now stopped at the kept comment first and never reached the thread. Shift+t walks back from that first stop and wraps to the thread in one trip, so the journey still covers Resume interrupting a trip to the thread and the comment staying with its own passage. No product behavior changes. Closes #6740
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.
#6675 made the thread walk stop at each comment the user began and put away, as Threads lists them. This journey keeps a comment at Paragraph 3 and then pressed
tto travel to the open thread at Paragraph 41, sotnow lands on the kept comment's box ("1 of 2 threads and drafts") and the thread is never focused; in the early-Resume case no trip to the thread starts, soearlyResumeBoxesis never written and the wait times out.The test now presses Shift+t at both points. From the kept comment, the walk's first stop, walking back wraps straight to the thread in one trip, so the journey still covers what it protects: Resume interrupting a trip to the thread (before its first frame, and mid-scroll on a slowed CPU) returns the same editor with its words and caret, and Comment at the thread opens the thread's own reply while the earlier words stay with Paragraph 3. Pressing
ttwice instead would put a stop at the comment itself before the trip, which changes the scenario under test. No product code changes, so #6675's behavior stands as its author intended.All three cases fail on
d53e9994fand pass with this change (uv run pytest "tests/journeys/drafts/test_comment_targets.py::test_comment_follows_a_thread_current_location_instead_of_an_earlier_draft").Closes #6740 — automated triage