Skip to content

test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press: Resolve shows a picture's cursor since #5390 #5682

Closed

Description

@leaf-agent

Since #5390 (f140fc2cf, "Draw the floating panel's thread through ThreadView, as the margin card does"), the pressed-controls journey finds a thread view's Resolve changing face while its gesture travels:

  • tests/journeys/test_pressed_controls.py::test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press[feature-gallery]
  • tests/journeys/test_pressed_controls.py::test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press[thread-panel-gallery]
div# "Resolve thread": {'cursor': 'pointer', 'disabled': False, 'busy': False} before the press, {'cursor': 'zoom-in', 'disabled': False, 'busy': False} while its gesture travelled

press_each_control (tests/browser/widgets/test_pressed_controls.py) reads the face of whatever stands under the pointer before the press and again while the event is held. After Resolve, a picture (.lf-picture, cursor: zoom-in) now stands under the pointer instead of the control. The check only skips a press that leaves no control under the pointer, so it doesn't skip this one.

Onset. From #5228 until #5439 (e0c0f9c5f), this sweep pressed nothing ("On me lists items but the sweep pressed nothing"), because its control reader started at body. That hid the failure, and a plain bisect lands on #5439. With #5439 cherry-picked onto each commit, git bisect run over 1f4fdea80..3795150ae on [thread-panel-gallery] found f140fc2cf as the first bad commit. Its parent 0a22a8c52 passes, and so does 1f4fdea80 (#5228) itself. The case still fails on main ccecec2c0.

What remains to decide is whether the panel's thread now changes under the pointer after Resolve because ThreadView draws differently, for example showing the next thread or reflowing the view, or whether the test's "a press that left no control under the pointer" exception should also cover a control the press replaced with content. #5410's "Resolve moves on" later made the margin card act the same way.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The fix is in #5691. The test was wrong here, not ThreadView. Since #5390, Resolve in the panel's thread view moves on to the next open thread, as intended. In thread-panel-gallery, that thread's picture button (.lf-picture, cursor: zoom-in) ends up under the pointer, and the check read that as Resolve changing its face.

    press_each_control now reads the face under the pointer again after the answer lands. It reports a failure only when the face seen while the gesture travelled differs from both the face before the press and the face after the answer. The journey passes on both parametrizations. To confirm a real flicker is still caught, I temporarily injected cursor: wait from the press until the answer landed, and the check failed on Resolve and on Reopen. Review and CI on #5691 are pending. Landing goes through the usual review and tend-land path.

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