Skip to content

test: leave Draw, Design and touch capture by the panel field's Close - #5732

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5702
Nov 9, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#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_usable and test_render_aim.py::test_design_mode_leaves_the_chrome_working keep 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_nothing taps 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 press tabindex="-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 2f47830e4 with the timeouts reported in #5702. With this change they pass locally under uv 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.js and design.js still announce "Exit Draw mode leaves." / "Exit Design mode leaves.", and the nightly journey tests/journeys/test_render_semantic_selection.py asserts 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

#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
@leaf-agent
leaf-agent merged commit 14f842b into main Nov 9, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5702 branch November 9, 2026 08:49
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.

Draw, Design and touch-capture tests fail on main since #5630 replaced the modes' exit button with the field's Close

1 participant