Skip to content

test_generated_hints_include_links_revealed_by_a_page_widget: Go-to gives the contents spine's fading-in links no chips since #7332 #7379

Done

Description

@leaf-agent

tests/browser/navigation/test_go_to.py::test_generated_hints_include_links_revealed_by_a_page_widget has failed on every run since #7332. After g, the contents spine's links get no Go-to chips: expect(chips).to_have_count(4) finds 0 (.lf-go-to-hints .lf-go-to-hint[data-lf-hint-code][data-lf-go-to-kind="Link"]).

First failing run: run 45961543011 on 6999c938f. It was the first push run to finish after run 45948475842 on 37e0cb217, where this test passed.

Bisect: run alone with uv run pytest -n0 -q <node-id>, it passes on 854c58703^ and fails on 854c58703 (#7332) and on current main (b008b0d73).

Diagnosis so far: #7332 made a transparent control get no chip (checkVisibility({opacityProperty: true, …}) in visibleCandidates, browser/runtime/panel/page-keys/go-to-sequence.js). It reads the hint map once the frame arming paints has drawn. The contents spine's labels rest at opacity: 0, and body[data-lf-go-to-active] reveals them through opacity: 1 with a 0.24s transition (packages/default/styles/toc.css). So when the map is read, the labels are, I believe, still at or near opacity 0 and are judged unseen. I haven't confirmed this by reading the computed opacity at that moment. #7332 waits for a panel view's fade (heldUnseen, dom/motion.js) but not for a package's reveal. So the fix chooses between Go-to judging a revealed control by where its fade is heading, and the spine showing its labels at once while Go-to is armed. The first is general; the second is local to the package. #7332's stated intent (hints for every visible control, none for a control that is transparent at rest) keeps both open.

Cause of a failure tracked in #7376.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fix open in #7382. I confirmed the diagnosis by sampling the spine's labels every frame after g. Their computed opacity was still exactly 0 at 27 ms and 43 ms, when Go-to reads its map, and only started rising in the frame after that. Nothing reads the map again once the fade ends, so the chips never arrive.

    #7382 takes the package-local route. While Go-to is armed, the spine's labels show at once (transition: none). Hover still fades them in, and they still fade out when Go-to ends. The failing test passes with the change and fails without it. Its CI and landing are with tend-land. The general alternative, judging a fading-in control by where it is heading, is described in the PR in case a later package's reveal needs it.

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