Skip to content

test(desktop): backfill app e2e coverage for post-migration gaps - #4594

Merged
Jocs merged 1 commit into
developfrom
test/desktop-e2e-coverage
Jun 20, 2026
Merged

Jocs merged 1 commit into
developfrom
test/desktop-e2e-coverage

Conversation

@Jocs

@Jocs Jocs commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

Backfills desktop Electron e2e coverage for behaviors left unprotected after the muyajs → @muyajs/core migration. ~85 tests across 28 specs (17 new, 11 extended) + one fixture (data/all-blocks.md). Test-only; no product source changes.

Highlights:

  • Tabs/history: per-tab undo isolation across switches, tab content swap, blank-tab clean-until-keystroke, context-menu close-others/saved/all; per-tab scroll + cursor restore
  • Source/view modes: source-keystroke → unsaved dot, save→clean→edit→dirty cycle, source-mode disables typewriter/focus, focus dimming, view-mode menu checked state, typewriter centering, source-scroll restore on reload
  • Editing: real-keyboard \``js`+Enter fenced block, wrap-code CSS, list indent, HTML block input, loose-list toggle, task-list autoCheck, quick-insert accelerators, all-blocks roundtrip
  • Images: relative-path file:// resolution, Space/Esc/Cmd-click preview, empty image-edit tool
  • Find/Replace: counter + highlights, next/prev wrap, replace single/all + dirty, case/whole-word/regex toggles + error, Escape clears
  • Export/TOC/i18n: PDF export smoke, TOC panel + scroll, in-doc anchor links, copy-anchor-link, Prism theme colors, i18n shell re-translation, zh-CN heading input
  • Flips the [Bug] 似乎不能正常处理**加粗语法的配对 #4307 CJK-strong test.fixme to a live test (engine fix has landed)

Verification

Each spec verified green via playwright test <file> against the built app; representative sample re-run first-hand (15 passed across 5 new files). Two pre-existing engine bugs surfaced during authoring are addressed separately (#4588 fixes the image-preview blur crash; the table re-serialization observation was investigated and is not an engine defect — the serializer is idempotent).

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Build artifacts for PR #4594:

Run: https://github.com/marktext/marktext/actions/runs/27870457366

Artifact Size Link
marktext-windows-arm64 257.1 MB Download
marktext-macos-x64 257.9 MB Download
marktext-linux 558.5 MB Download
marktext-windows-x64 258.4 MB Download
marktext-macos-arm64 247.6 MB Download

@Jocs
Jocs force-pushed the test/desktop-e2e-coverage branch 3 times, most recently from 79a4e86 to 30b9b6d Compare June 20, 2026 11:50
Adds/extends desktop Electron e2e specs pinning behaviors uncovered after
the muyajs -> @muyajs/core migration: per-tab undo history + tab content
swap + blank-tab clean state + tab context-menu close sets; real-keyboard
fenced code block + language; relative-image file:// resolution; image
preview (Space/Esc/Cmd-click); find/replace counter, next/prev wrap,
replace single/all + dirty, case/whole-word/regex toggles, Escape; source
mode disabling typewriter/focus, focus dimming, view-mode menu checked
state, typewriter centering; source-keystroke unsaved dot + save/edit
cycle; source-mode scroll restore on reload; i18n shell re-translation;
Prism theme colors; task-list autoCheck; list indent; HTML block input;
all-blocks roundtrip; image edit tool; TOC panel/scroll + anchor links;
copy-anchor-link; zh-CN heading input; loose-list toggle; quick-insert
accelerators; and flips the #4307 CJK-strong tripwire to a live test.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Jocs
Jocs force-pushed the test/desktop-e2e-coverage branch from 30b9b6d to 7224c85 Compare June 20, 2026 11:57
@Jocs
Jocs merged commit 9c5e611 into develop Jun 20, 2026
10 of 11 checks passed
@Jocs
Jocs deleted the test/desktop-e2e-coverage branch June 20, 2026 12:13
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.

1 participant