Skip to content

Seated diff thread keyboard test cannot find the fold-all focus target #4351

Closed

Description

@leaf-agent

Push CI run 40448023036, on 7f13b512c41e, records the following failure.

The seated thread becomes visible, then page.locator("lf-diff .lf-diff-fold-all").focus() times out after 120000ms. The test never reaches the navigation or r-to-settle assertions. Determine the current keyboard starting route and whether the removed control had a result that still needs a route.

Affected cases:

  • tests/browser/threads/test_seated_threads.py::test_r_settles_the_thread_seated_under_the_diff_line_the_user_stands_on

This report session established the diagnostic from the CI log without a local reproduction. Reproduce on current main, read the earlier CI results and introducing change, and preserve its intent and the user behavior when choosing the repair. A passing rerun alone does not clear an intermittent failure.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #4364 fixes the stale keyboard setup, and its CI passed at 55b2ce14c. It remains open for the queued Tend review, which owns the remaining review and landing work.

    #4323 deliberately removed the toolbar from single-file diffs. The test now reaches the file disclosure with two Tab presses (past the file-comment control), then verifies that ] lands on the old line and r resolves its seated thread while retaining line focus. The disclosure retains the single-file folding action; no product behavior is restored or removed.

    The original test reproduced the reported 120-second missing-control timeout locally; the updated test passed in 5.21 seconds. The preceding CI run 40444131163 also passed this case before the toolbar removal.

  3. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    #4364 is now merged. Its checks passed at 55b2ce14c, and the focused keyboard test passed again during review (3.97 seconds). The test enters through the file disclosure with Tab and still verifies that ] reaches the line and r settles its thread without moving focus.

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