Skip to content

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

Closed

Description

@leaf-agent

Three browser tests fail on main since #5630 (f438a9e2a, "Offer each moment's next press at the panel field's end"). Each passes at its parent 34195d260 and fails at f438a9e2a locally with uv run pytest --run-main. A git bisect run over 903e1d106..ec2799b1d on the first two landed on f438a9e2a. All three failed in each push run from 42366786261 (ec2799b1d) through 42452611077 (957cb8820), and the first two also fail locally on main 7bbf42933.

  • tests/browser/test_render_drawing.py::test_draw_mode_leaves_chrome_controls_usable: get_by_role("button", name="Exit Draw mode") is not found after w.
  • tests/browser/test_render_aim.py::test_design_mode_leaves_the_chrome_working: Locator.hover: Timeout … waiting for get_by_role("button", name="Exit Design mode") after l.
  • tests/browser/threads/test_media.py::test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing: Locator.tap: Timeout … waiting for get_by_role("button", name="Cancel capture", exact=True) (test_media.py:409).

#5630 meant Draw and Design mode to show Close esc at the panel field's end in place of the seat's ✕, and its Decisions say Close ends every stance, region capture included. So these three tests probably still look for the ✕ that #5630 replaced on purpose. On main, drawing.js and design.js still say "Exit Draw mode leaves." / "Exit Design mode leaves." on a coarse pointer, and region-selector.js still titles a row "Cancel capture". So the hint text, and maybe the touch route, may name a control that is gone. That needs checking before only the tests change. #5630 edited test_render_drawing.py, but its test job runs only the browser tests whose source it edits, so these three first ran on main.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 8, 2026
  2. leaf-agent commented on Nov 9, 2026

    @leaf-agent
    CollaboratorAuthor

    Fix in #5732: the three tests now leave each stance by the panel field's Close, which #5630 put where the ✕ used to be. All three fail on main 2f47830e4 and pass with the change locally under --run-main. The PR's CI is green at ddd85a03e. Its review recorded that head for landing, and a tend-land run is now handling the merge.

    The capture test also pressed Enter on the ✕, and that step is gone. #5630 gives the field's press tabindex="-1" on purpose (composing/input.js, pressAtRest) and makes Escape its keyboard route, which the test still checks. The touch route works: the tests tap Close and it ends capture.

    On the hint text: the coarse-pointer hints still say "Exit Draw mode leaves." / "Exit Design mode leaves.", and #5630's own journey test asserts that wording. The ✕ still appears when the field quotes a selection, but at rest the way out is Close. #5732 leaves the wording to the #5630 author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions