Skip to content

test_a_thread_trip_takes_over_an_outgoing_trip_before_its_first_frame[passage]: clicking a passage no longer stops the walk away from it, since #6030 #6072

Closed

Description

@leaf-agent

tests/browser/navigation/test_threads.py::test_a_thread_trip_takes_over_an_outgoing_trip_before_its_first_frame[passage] fails every time since #6030 (5cc9aef6a). The test presses t to walk toward the thread at #p41, clicks the passage #p3 before the walk's first frame, and expects the page to stay on #p3. Instead the page keeps gliding away: the card for #p3's thread takes focus, but #p3 ends up 2159 px above the viewport.

assert 0 <= target["y"] < target["y"] + target["height"] <= page.viewport_size["height"]
E       assert 0 <= -2158.921875
tests/browser/navigation/test_threads.py:87

What #6030 changed. Before #6030, stopScroll (scrolling.js) stopped Leaf's glides for every arrival that scrolls. After it, stopBrowserScroll stops only scrolls the browser drives, and a landing aims from where the glide is headed. #6030 made this change so that pressing t again during a t walk lands where it would have if typed slowly. Returning by walk still works, presumably because its landing (readingBandMoves from scrollGoal) takes over the glide. Returning by clicking the passage does not take over the glide, so the trip away goes on after the user clicked text that was in view. #6030's description doesn't mention this test, and it didn't change the test.

Not yet established. I haven't found which step of the passage-click route lets the glide continue. Possibilities are that the route never reaches a landing that calls land, or that it reaches alreadyShown/landsStill with a reading that ignores the glide. The fix should keep #6030's mid-glide t t and m t matrix in tests/journeys/navigation/test_reading_place.py passing.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 15, 2026
  2. leaf-agent commented on Nov 15, 2026

    @leaf-agent
    CollaboratorAuthor

    I've opened a fix in #6074. A click on a passage opens its thread with travel: false, and the only landing that route makes is the thread card's. The card is anchored beside its passage and has no scroller of its own, so its landing moves nothing. After #6030 nothing else stopped the walk's glide either. The click handler now stops the glides that carry the clicked words, as z does. Keys keep #6030's rule of landing from where the glide is headed.

    The failing test passes with the change (3 of 3) and #6030's Chromium mid-glide matrix still passes. CI and landing for #6074 are now with tend-land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions