test(muya): e2e cover cross-block edits that skip the keydown handler… · marktext/marktext@abe25da · GitHub
Skip to content

Commit abe25da

Browse files
Jocsclaude
andcommitted
test(muya): e2e cover cross-block edits that skip the keydown handler (#5415)
Drives the real chords over a selection running from a bullet into the paragraph below it, and asserts all three symptoms are gone: the markdown loses the second block, no block is left with a detached DOM node, and Enter, Enter at the end of the list no longer throws. Ctrl+Backspace is Chromium's own delete-word binding and needs no AppKit command, so it covers this on CI; Playwright forwards the macOS editing commands (Cmd+Backspace, Ctrl+K/D/H, Ctrl+Y yank) only when the host is macOS, so those are gated on the platform. Ctrl+Y is the one insertion route a keyboard can reach, standing in for the emoji picker and dictation, which no test can drive. Ctrl+C and a plain printable key are pinned alongside: both go through the keydown handler, and neither behaviour may change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 664eeaf commit abe25da

1 file changed

Lines changed: 196 additions & 0 deletions

File tree

Lines changed: 196 additions & 0 deletions

0 commit comments

Comments
 (0)