Repository navigation
test: leave Draw, Design and touch capture by the panel field's Close - #5732
Merged
Merged
Conversation
#5630 replaced the seat's ✕ ("Exit Draw mode", "Exit Design mode", "Cancel capture") with Close at the panel field's end while a stance is at rest. Three browser tests still looked up the ✕ by name and timed out on main. They now take the field's Close press, which the same tests show keeps Leaf's chrome usable in Draw and Design mode and leaves capture with nothing attached. The capture test also pressed Enter on the ✕. #5630 gives the field's press no tab stop on purpose: Escape is its keyboard route, and the test still checks Escape, so the Enter step is gone. Closes #5702
This was referenced Nov 9, 2026
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.
#5630 meant Draw mode, Design mode and region capture to show Close at the panel field's end while the stance is at rest, in place of the seat's ✕. Its Decisions say Close ends every stance, capture included. Three browser tests still looked up the old ✕ by its accessible name (
Exit Draw mode,Exit Design mode,Cancel capture) and timed out on main. They now use the field's Close press (render_harness.field_press), which #5630's own tests already use for the same exit.test_render_drawing.py::test_draw_mode_leaves_chrome_controls_usableandtest_render_aim.py::test_design_mode_leaves_the_chrome_workingkeep their assertions. Chrome presses stay the chrome's in the mode, and Close ends the mode.threads/test_media.py::test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothingtaps Close to leave capture with nothing attached. It also pressed Enter on the ✕, and that step is removed. Offer each moment's next press at the panel field's end #5630 gives the field's presstabindex="-1"on purpose (composing/input.js,pressAtRest: "The keyboard's route is the press's own command"). Escape is that route, and the test still checks it.All three failed on main
2f47830e4with the timeouts reported in #5702. With this change they pass locally underuv run pytest --run-main.The ✕ still appears when the field is saying something else, for example quoting selected words. On a coarse pointer, the mode-entry hints in
drawing.jsanddesign.jsstill announce "Exit Draw mode leaves." / "Exit Design mode leaves.", and the nightly journeytests/journeys/test_render_semantic_selection.pyasserts that wording. At rest the button those hints name is now Close. Whether the hints should name Close is a wording choice for the #5630 author, so this PR leaves it alone.Closes #5702 — automated triage