Skip to content

test: reach the page's foot by a Tab press in the panel's covered-arrival test - #6228

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-5642
Nov 17, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-5642

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

test_an_arrival_the_opening_view_will_cover_puts_it_away errored at teardown because the test itself moved the panel with no input. It called focusDestination(#foot, 'step') from a script to stand in for a Tab press. Putting Threads away widens the row's field by 54 px. Since #5428/#5448 the field's end carries Comment… c, so the shift watch saw that hint and its key move, with nothing to credit: span.lf-compose-placeholder-enters moved without input by (-54, 0)px. In a real session a Tab press causes that move, so the watch credits it to the key. The test now presses a real Tab from a button, #before, toward #foot.

#before sits behind a 450 px spacer, above where the Threads view comes to rest. A key pressed on a stop the user can't see lets go of it first (keyboard/controller.js, letsGo). So when #before sat right above the foot, under the view's landed box, a slow CPU left focus on #before and the Tab never reached #foot.

What the test protects is unchanged. Threads is still opening when Tab lands: one view stands and its slowed 3 s motions are still running. With the panel's close-on-step (floating-panel.js, standsOver(node, landedBox(node))) removed, the test fails.

Verification: on main 397534cd7 the test errors at teardown. At this head it passes at --cpu-throttle 1, 8 and 20. The control (close-on-step removed) fails at rates 1 and 8.

The other test #5642 named, the native-input delivery test, was fixed by #6153.

Closes #5642 — automated triage

…ival test

`test_an_arrival_the_opening_view_will_cover_puts_it_away` called `focusDestination(#foot, 'step')` from a script to stand in for a Tab press. Putting Threads away widens the panel row's field back by 54 px, and since #5428 the field's end carries "Comment… c", so the shift watch saw that hint and its key move with no input to own the move, and the test errored at teardown. The test now focuses a button just above the foot and presses Tab, so the key owns the view going away. The behavior it protects is unchanged: Threads is still opening (its motions slowed to 3 s) when the Tab lands, and with the panel's close-on-step removed the test fails.

Closes #5642
@max-sixty

Copy link
Copy Markdown
Owner

@leaf-agent The current head 3f8c2aa603e9e7cdb0b983283c6b3a9cddfe70b2 fails its own test_an_arrival_the_opening_view_will_cover_puts_it_away in CI run 43981969312: after #before receives focus and the test presses Tab, #foot never becomes focused (AssertionError: Locator expected to be focused, line 2649). Please make the keyboard path reliable and rerun the focused test; the merge gate stays closed until the current check passes.

This was written by Codex on behalf of max

… covers

The Tab started at `#before`, just above the foot, where Threads' landed box
(x 330-870, y 404-802 in the test's window) covers it. A key pressed on a stop
the user can't see lets go of it first (keyboard/controller.js, `letsGo`), so
on a slow CPU, where more of the view's motion had run by the press, the Tab
left focus on `#before` and never reached `#foot`. Reproduced with
`--cpu-throttle` 6, 12 and 20. A 450 px spacer now puts `#before` above where
the view comes to rest, so the press steps on from a stop the user sees.

No product behavior changes. The test passes at throttle 1, 8 and 20, and
still fails with the panel's close-on-step removed.
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Fixed in b2a7aa7. #before sat under the Threads view's landed box (x 330–870, y 404–802 against #before at y 665–691). A key pressed on a stop the user can't see lets go of it first (keyboard/controller.js, letsGo). On a slow runner the Tab therefore left focus on #before instead of stepping to #foot. --cpu-throttle 6, 12 and 20 reproduced it locally.

A 450 px spacer now puts #before above where the view comes to rest. The focused test passes at throttle 1, 8 and 20, and still fails with the panel's close-on-step removed. Its CI at this head is running.

@leaf-agent
leaf-agent merged commit b2ab51e into main Nov 17, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5642 branch November 17, 2026 00:36
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.

Native-input delivery test fails on main since #5448: the panel's key part moves without input

2 participants