Skip to content

test: leave the armed-cursor test's Design mode by its own key - #6446

Merged
max-sixty merged 2 commits into
mainfrom
fix/armed-cursor-leaves-design-mode-by-its-key
Nov 19, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/armed-cursor-leaves-design-mode-by-its-key

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

test_an_armed_page_shows_each_place_the_cursor_its_press_keeps[firefox_browser] failed in the Nov 17 and Nov 18 macOS nightlies, reading a hand on the draft's item at rest (['pointer', 'pointer']). The test left Design mode with one Escape after resting the pointer on each place in turn. On a slow machine the rest on the link outlasts the preview's 200 ms dwell, so the link's preview shows, and it still stands when Escape arrives. Escape puts the preview away, as browser/runtime/keyboard/AGENTS.md ("Escape") says it should, and Design mode stays on. The ⌥-click that follows takes the draft's item in Design mode, whose hand stays after ⌥ comes up. The page does what the contract says; the test assumed no preview stood.

The test now waits for Design mode to stand after l, leaves it with l, which puts a preview away and leaves the mode in one press, and waits for it to end.

Evidence:

  • Before, on CI's macOS runner (the dispatch input Reproduce a macOS-only failure on CI's Mac with a ci dispatch that names its tests #6434 adds): the test alone failed in 3 of 16 copies run four at once (run 44408705940), and in 3 of 4 copies of the 43 Firefox tests the nightly's worker ran before it (run 44408713046). A probe that logged the page's events showed Escape delivered and the Design legend still up at the failing reading, in each failing copy (run 44419223004).
  • Locally, deterministic: resting 400 ms on the link before the Escape fails the test at full speed on this Mac in 3 of 3 runs, and passes 3 of 3 with this change. Its event log shows the link's preview open when Escape arrives, closing on it, and the Design legend staying.
  • After, on CI: the test alone passed 16 of 16 copies four at once (run 44421651157), and 4 of 4 after the 43 Firefox tests (run 44421672607). Two other tests failed in that second run, neither touched here: test_a_preview_covers_no_neighbour_and_takes_the_pointer_in_a_modal[firefox_browser] in 3 of 4, which passed 4 of 4 on main before today's later merges, and test_the_comment_box_comes_back_to_where_its_passage_starts[firefox_browser] in 1 of 4, on a Firefox module-load warning with the runner's address held.

Refs #6303.

This was written by Claude Code on behalf of max-sixty

test_an_armed_page_shows_each_place_the_cursor_its_press_keeps[firefox_browser]
failed in the Nov 17 and Nov 18 macOS nightlies, reading a hand on the
draft's item at rest (['pointer', 'pointer']). It left Design mode with
one Escape after resting the pointer on each place in turn. On a slow
machine the rest on the link outlasts the preview's 200 ms dwell, the
link's preview shows, and it still stands when Escape arrives, so
Escape puts the preview away, as the keyboard contract says, and
Design mode stays on. The ⌥-click that follows then takes the draft's
item in Design mode, whose hand stays after ⌥ comes up. The page does
what it should; the test assumed no preview stood.

The test now waits for Design mode to stand after `l`, leaves it with
`l`, which puts a preview away and leaves the mode in one press, and
waits for it to end.
leaf-agent
leaf-agent previously approved these changes Nov 19, 2026
@max-sixty
max-sixty merged commit 0d8c1dc into main Nov 19, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/armed-cursor-leaves-design-mode-by-its-key branch November 19, 2026 07:17
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.

2 participants