Skip to content

test: wait for the Resolve's rendering before its refusal in the panel notice test - #5766

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5727
Nov 9, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5727

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_resolve_s_notice_stands_for_that_resolve_alone failed 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 resolve with 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 single moved-without-input finding, matched to button.lf-fp-settled. This follows tests/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.

  • Before the change, the test failed with this exact signature every time at --cpu-throttle 6, 10 and 20, and passed unthrottled.
  • With only the new wait, it fails unthrottled every time, so the ordering is now fixed.
  • With the consumption added, it passes at rates 1, 6, 10 and 20.

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. Today transition() starts a fresh opening, which drops the Threads list's drawnSections hold 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

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_a_resolve_s_notice_stands_for_that_resolve_alone: settled row moves 65px without input at teardown

1 participant