Repository navigation
fix: give reaction fixture asks unique ids - #4166
Merged
Merged
Conversation
The shared thread fixture bypasses markup admission. Calling it twice on one page reused forty-enough, producing two widget obligations with one identity and duplicate primary-reader nominations when On me opened. Give each ask an id derived from its thread root, preserving the reaction behavior and the uniqueness guarantee. Closes #4165
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.
The reaction test creates two threads through the same fixture, which bypasses markup admission and reused
id="forty-enough". This produced two widget obligations with the same identity; opening On me then nominated the same thread message twice and failed presentation. Each fixture ask now derives its id from its thread root.The reported test fails with the duplicate-nomination diagnostic before this change and passes after it. All four tests using the helper pass, with their reaction assertions unchanged. Ruff 0.16.1 lint and formatting checks pass.
The fixed id entered the helper in #3114 when prose asks became widgets. This preserves that intent and leaves runtime behavior and the primary-reader uniqueness guarantee unchanged.
Closes #4165 — automated triage