Repository navigation
test: read a pressed control's face again once its answer lands, so the next thread Resolve opens isn't a flicker - #5691
Merged
Merged
Conversation
…he next thread Resolve opens isn't a flicker Since #5390, Resolve in the floating panel's thread view moves on to the next open thread, as the user chose. The pressed-controls journey then found the next thread's picture button (cursor: zoom-in) under the pointer while the Resolve travelled, and reported it as Resolve changing face. `press_each_control` now reports a changed face only when the face under the pointer once the answer lands differs from the one seen while the gesture travelled. A busy or disabled face that the answer takes away is still a flicker; a face the press drew and the answer keeps is the press's result. Closes #5682
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.
Since #5390, Resolve in the floating panel's thread view moves on to the next open thread, which is the behavior the user chose and #5390 restored. On
thread-panel-galleryandfeature-gallery, the next thread puts a message's picture button (.lf-picture,cursor: zoom-in) under the pointer while the Resolve is still travelling.press_each_controlcompared only the face before the press with the face while the gesture travelled, so it reported the panel moving on as a flicker on Resolve.The check now reads the face at the pointer a third time, after the answer has landed, and reports a failure only when the face seen while the gesture travelled is different from both the face before the press and the face after the answer. A flicker, such as a busy cursor or a disabled face for one round trip, is gone once the answer arrives, so it is still caught. A face the press drew and the answer keeps is the press's own result. A refused gesture puts the page back as it was, so for those presses the check still holds the travelling face to the face before the press.
Verification:
02cd6bdff(main),tests/journeys/test_pressed_controls.py::…[thread-panel-gallery]fails with the message in test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press: Resolve shows a picture's cursor since #5390 #5682. With this change,tests/journeys/test_pressed_controls.pyandtests/browser/widgets/test_pressed_controls.pypass (48 tests).cursor: waitfrom the press until the answer landed. The journey then failed on "Resolve thread" and on "✓ Resolved by Codex · Reopen".Closes #5682 — automated triage