Skip to content

test: let each touch press in the harness wait out the previous tap's run - #5528

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5480
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5480

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5290 added a row to the leaf menu's Annotations list, which moved Capture area up by one row to within 7 px of where the Annotations door had been tapped. open_capture_area taps the door and then the row about 160 ms apart, so Chromium counted the second tap 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 floating-panel.js), so capture never opened. The panel's rule and #5290's row are both as intended. The test tapped faster than a person can.

press_visible now waits until 0.5 s have passed since the page's previous tap. Chromium measured a run window of about 400 ms here. A mouse press is unchanged, since Playwright states each click's count.

test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing failed on main and passes with this change. The other touch tests that go through press_visible keep their results. test_on_a_phone_held_news_gives_way_before_close and test_on_a_phone_turning_on_s_tabs_moves_nothing fail the same way with or without the change.

Closes #5480 — automated triage

… run

#5290 added a row to the leaf menu's Annotations list, which moved Capture area up by one row to within 7 px of where the Annotations door had been tapped. `open_capture_area` taps the door and then the row about 160 ms apart, so Chromium counted the second tap 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 floating-panel.js), so capture never opened. The panel's rule and #5290's row are both as intended. The test tapped faster than a person can.

`press_visible` now waits until 0.5 s have passed since the page's previous tap. Chromium measured a run window of about 400 ms here. A mouse press is unchanged, since Playwright states each click's count.

`test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing` failed on main and passes with this change. The other touch tests that go through `press_visible` keep their results. `test_on_a_phone_held_news_gives_way_before_close` and `test_on_a_phone_turning_on_s_tabs_moves_nothing` fail the same way with or without the change.

Closes #5480
@leaf-agent
leaf-agent merged commit 53337b5 into main Nov 5, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5480 branch November 5, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing fails on main since #5290

1 participant