Skip to content

test_a_shared_passage_steps_between_single_thread_cards: Previous thread button becomes inert and hidden after Next #6838

Done

Description

@leaf-agent

tests/browser/margin/test_opening_threads.py::test_a_shared_passage_steps_between_single_thread_cards failed in run 45104895190 on 10ac9da49 and passed in the previous push run on 017ddeccf.

After Next thread steps the card to 2/2 and the reply takes focus, previous.click() times out after 120 s. Playwright's log: the button is first "not stable", then <body> intercepts the press, then "element is inert", then "element is not visible" for every later retry. So the card disappeared, or was made inert, while the test stepped between threads. Candidates in 017ddeccf..10ac9da49: #6810 (a489020ad), which changed thread-preview.js and comment-placement.js, and #6688 (ce9b19b09), which changed comment-box placement. One run doesn't establish whether this is durable or intermittent.

Next: run the test repeatedly on current main and at 017ddeccf (tests/AGENTS.md, Races). If it fails durably, bisect; if it's intermittent, read the run's failure pictures to see where the card went.

Cause of a failure tracked in #6833.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    This is a race in the test. No product regression caused it. After Next, the step glides the shared passage into the reading band (394 px here), and the card moves with the page. If the Previous press is aimed before the glide ends, it lands on <body> where the button stood. That moves the user's place off the passage, and the card closes, which matches the run's call log (not stable → <body> intercepts → inert → hidden). A probe that presses at the button's old position mid-glide closes the card every time. The same glide happens at 017ddeccf, so #6810 and #6688 didn't cause it, and the same failure hit Linux on Nov 15 (#6048).

    #6843 makes the test wait for each step's scroll to settle before the next press. It passed 12 of 12 copies under --cpu-throttle 8. CI and landing for it are pending. The PR also raises a design question it leaves open: a step to another thread at a passage that is already on screen still moves the page.

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