Repository navigation
test: let each touch press in the harness wait out the previous tap's run - #5528
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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_areataps the door and then the row about 160 ms apart, so Chromium counted the second tap as the second click of a run (detail2). The floating panel deliberately presses nothing for a click that continues a run begun on another control (runOfClicksin 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_visiblenow 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_nothingfailed on main and passes with this change. The other touch tests that go throughpress_visiblekeep their results.test_on_a_phone_held_news_gives_way_before_closeandtest_on_a_phone_turning_on_s_tabs_moves_nothingfail the same way with or without the change.Closes #5480 — automated triage