Repository navigation
test: wait for the Resolve's rendering before its refusal in the panel notice test - #5766
Merged
Merged
Conversation
…nsume the move it makes test_a_resolve_s_notice_stands_for_that_resolve_alone released its held refusal while the Resolve's fade might still be running. When the refusal landed inside that rendering, the shift watch credited it to the Resolve. On a slower runner the fade had ended, so the watch saw the refused thread rejoin Open in the leaving Threads view and carry the Resolved heading 65px down without input. CI saw this in runs 42463633169 and 42534421553; locally it fails every time at --cpu-throttle 6, 10 and 20 and passes unthrottled. The test now waits for that rendering to settle before releasing the refusal, so the refusal always arrives as news. It then consumes that one move, matched to the settled heading, as tests/journeys/test_thread_response_continuity.py already does for a refused reply's moves inside the panel. With the wait alone the test fails unthrottled every time; with the consumption it passes at throttle rates 1, 6, 10 and 20. What the test checks is unchanged: the panel may move inside itself when a refusal arrives after the gesture's rendering has finished. Closes #5727
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.
test_a_resolve_s_notice_stands_for_that_resolve_alonefailed at teardown whenever its held refusal arrived after the Resolve's rendering had finished. The test now waits for that rendering to settle before releasing the refusal, then consumes the one move the refusal makes.Cause. The test releases a held
resolvewith a final refusal while the panel shows Threads. On a fast runner the refusal landed while the Resolve's view fade was still running, so the shift watch credited the frame to the Resolve. On a slower runner the fade had ended, and the refusal arrived as news. In that frame the panel returns to the thread, and the Threads view, as it leaves, draws the refused thread back under Open. That pushes the Resolved heading (.lf-fp-settled) down by 65 px with no input crediting the move, which is the signature in both CI failures (42463633169, 42534421553). A per-frame trace showed the leaving view's open rows going from 0 to 1 in that frame.Change. Before the release, the test waits for
rendered(page)plus one frame, so the refusal always arrives as news. After the panel shows the thread again, it consumes that singlemoved-without-inputfinding, matched tobutton.lf-fp-settled. This followstests/journeys/test_thread_response_continuity.py, which already releases a refused reply after the input window and consumes the moves it makes inside the panel.Verification.
--cpu-throttle 6,10and20, and passed unthrottled.Not changed: the product behavior. This accepts the move as correct for a rare path, as
browser/AGENTS.md("The page holds still under the user's aim") allows. To remove the move itself, a leaving view would have to keep the rows it last drew while it fades. Todaytransition()starts a fresh opening, which drops the Threads list'sdrawnSectionshold before the leaving view's last paint. That would be a product change across views, and it needs a maintainer's call.Closes #5727 — automated triage