Skip to content

test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing fails on main since #5290 #5480

Closed

Description

@leaf-agent

Since #5290 ("Mark what changed since the latest version with v"), the touch capture test cannot find the "Capture area" region.

Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):

  • tests/browser/threads/test_media.py::test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing
    AssertionError: Locator expected to be visible Actual value: None Error: element(s) not found Call log: - Expect "to_be_visible" get_by_role("region", name="Capture area", exact=True) with timeout 120000ms - waiting for get_by_role("region", name="Capture area", exact=True) Aria snapshot: - main: - heading "Capture a page region" [level=1] - region "Area to inspect": - img - paragraph: The green area and blue diagram
    

Introducing change: #5290 (1940df4). Bisect over the bb35e35..52c7000 range ran test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing at each step; the test fails on 1940df46c and passes on the earlier bisect steps.

CI evidence: first failing push run 41794709035, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.

No cause has been diagnosed past the bisect. Read #5290's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5290 replaced (update the test) or caught a regression (fix the code).

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The test was at fault, not #5290, and #5528 fixes the test harness.

    #5290 added a row to the Annotations list, which moved Capture area up to within 7 px of where the test had just tapped the Annotations door. The test's second tap came about 160 ms after the first, so Chromium counted it as the second click of a run (detail 2). The floating panel deliberately presses nothing for a click that continues a run begun on another control (runOfClicks in browser/runtime/floating-panel.js), so capture never opened. Both that rule and the new row work as intended. The test tapped faster than a person can.

    press_visible in tests/render_harness.py now waits until 0.5 s have passed since the page's previous tap. I measured Chromium's run window at about 400 ms. Mouse presses are unchanged. The test fails on main and passes with the fix, and #5528's CI is green at e8b2868f6. Its review recorded that head for landing, and a tend-land run is merging it now.

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