Skip to content

test: reach the fence-in-item and nested-outdent drafts with the keys #7112 gave Backspace - #7183

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-7173
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-7173

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_hold failed in both engines because two of its cases used Backspace in a way #7112 changed on purpose. #7112 (field-editor.js, "Keys at the edge of a line's shown words") made Backspace take a whole line that holds nothing but its markers. The two cases still removed a new item's marker one character at a time. Under the new keys their extra presses also deleted the words of the item above: b in the nested case, a in the fence case. So the missing item in the issue came from the test's own keystrokes. The keys did what #7112 says they do. This keeps #7112's behavior and changes only how the two cases reach the state they check, the same way #7123 updated four tests/browser tests:

  • fence in an item: - a⏎```⏎x⏎```⏎more → - a\n- ```\n x\n ```\n more. The fence now opens on the continued item's line instead of after a marker was erased. The check is the same: the fence's code and closing marks stay in the item.
  • outdenting a nested item: 1. a⏎b⏎⇥c⏎⏎d → 1. a\n2. b\n 1. c\n3. d. The case nests the item with Tab instead of deleting and retyping a marker. The check is the same: Shift+Enter on an empty nested item takes it back out to the outer list.

The other eight cases are unchanged. The journey failed locally in Chromium and Firefox with the issue's diff and passes after the change (2 passed, 4 subtests passed, --run-nightly selection by node id).

Closes #7173 — automated triage

…keys

#7112 made Backspace on a line holding only its markers, as a new item
does, take the whole line. Two cases of the Shift+Enter journey still
erased a new item's marker one character at a time, so their Backspaces
now also deleted the item above's words and left a draft the case never
meant to test. The behavior each case protects is unchanged:

- "fence in an item" opens the fence on the continued item's line,
  `- ```, and still checks its code and closing fence stay in the item.
- "outdenting a nested item" nests with Tab rather than by deleting and
  retyping a marker, and still checks that Shift+Enter on an empty
  nested item leaves it for the outer list.

Closes #7173
@max-sixty
max-sixty merged commit c19b9a6 into main Nov 25, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-7173 branch November 25, 2026 18:26
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.

test_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_hold: fence-in-item and nested-outdent markdown differ since #7112

2 participants