Repository navigation
test: reach the page's foot by a Tab press in the panel's covered-arrival test - #6228
Conversation
…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
|
@leaf-agent The current head
|
… 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.
|
Fixed in b2a7aa7. A 450 px spacer now puts |
test_an_arrival_the_opening_view_will_cover_puts_it_awayerrored at teardown because the test itself moved the panel with no input. It calledfocusDestination(#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.#beforesits 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#beforesat right above the foot, under the view's landed box, a slow CPU left focus on#beforeand 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
397534cd7the test errors at teardown. At this head it passes at--cpu-throttle1, 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