LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 19, 2026, 5:41 AM
updatedAtNov 22, 2026, 11:59 AM
githubUrlhttps://github.com/neomjs/neo/issues/21443
authorneo-gemini-maryam
commentsCount3
parentIssue20682
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[x] 21351 The home''s previews show a plan as Gantt and board, and a live grid
blocking[]
closedAtNov 22, 2026, 11:59 AM

Restore Mermaid unit spec in test/playwright/unit/code/LivePreview.spec.mjs

Closed v14.0.0/archive-v14-0-0-chunk-4 bughelp wantedgood first issueaitestingregression
neo-gemini-maryam
neo-gemini-maryam commented on Nov 19, 2026, 5:41 AM

Please comment to claim before starting; check current assignees and linked PRs.

Design authority: commit e17fc1d4c2 (#8755 / PR #20337), which shipped the 8-case Neo.code.LivePreview unit suite (seven Mermaid cases and one JavaScript dispatch control) on dev, and src/code/LivePreview.mjs (unchanged on dev).

Context

PR #21365 (Resolves #21351) temporarily added sideBySide and editorConfig unit cases to test/playwright/unit/code/LivePreview.spec.mjs. When commit 814692033c retired sideBySide on 19 Nov to keep tabbed LivePreview presentation on the home page, src/code/LivePreview.mjs and resources/css/src/code/LivePreview.css returned cleanly to dev, while test/playwright/unit/code/LivePreview.spec.mjs was deleted (deleted file mode 100644) instead of restored to dev (e17fc1d4c2).

The Problem

Deleting test/playwright/unit/code/LivePreview.spec.mjs drops 152 lines / 8 unit tests covering Neo.code.LivePreview Mermaid language dispatch, diagram reuse across edits, Markdown <-> Mermaid renderer switching, pending-import guards on tab leave or destroy, deferred unexposed measurement, and Markdown#processLivePreviewBlocks fence extraction and the JavaScript dispatch control (#8755 / PR #20337). CI stayed green on #21365 because deleting the spec file removed the tests while src/code/LivePreview.mjs remained untouched.

The Architectural Reality

src/code/LivePreview.mjs, src/component/wrapper/Mermaid.mjs, and src/component/Markdown.mjs on #21365 equal dev. Restoring test/playwright/unit/code/LivePreview.spec.mjs from e17fc1d4c2 reinstates the exact unit coverage with zero runtime change.

The Fix

Once #21365 merges to dev, restore test/playwright/unit/code/LivePreview.spec.mjs from commit e17fc1d4c2 (git checkout e17fc1d4c2 -- test/playwright/unit/code/LivePreview.spec.mjs) and verify all 8 unit tests pass.

A disposable checkout at 1e6fb3262d passed all 8 cases with the exact restored file. For a fresh checkout, run npm run bundle-marked before the focused unit command below.

Decision Record impact: none.

Acceptance Criteria

  • test/playwright/unit/code/LivePreview.spec.mjs is restored to its e17fc1d4c2 contents on dev after PR #21365 merges.
  • npx playwright test test/playwright/unit/code/LivePreview.spec.mjs -c test/playwright/playwright.config.unit.mjs passes all 8 unit cases.

Out of Scope

Re-introducing sideBySide or editorConfig on Neo.code.LivePreview; modifying src/code/LivePreview.mjs or apps/portal/view/home/*.

Avoided Traps

  • Running default npx playwright test without -c test/playwright/playwright.config.unit.mjs.
  • Opening a PR before #21365 merges (which would conflict on test/playwright/unit/code/LivePreview.spec.mjs).

Related

Parent #20682 · blocked by #21351 (PR #21365) · original Mermaid preview spec PR #20337 (#8755).

unowned-rationale: Ready for a contributor or any maintainer seat once #21365 merges; maintainers provide planning and review.

Live latest-open + closed sweep: checked latest 20 open (81 open, red band — folds under owning epic #20682 with 5 subs) + open and closed search ("LivePreview.spec.mjs", #21351 and #8755 body read) at 2026-11-19T04:40Z; no duplicate or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read-states, at 04:40Z: no claim. MC sweep: "LivePreview.spec.mjs deleted Mermaid unit spec", 5 results (#8755/#20337 origin turns), no prior exclusion. Own-assignment sweep: 2 open (#21190, #20883), none overlapping. Structure-map: N/A, restores an existing unit spec under test/playwright/unit/code/.

Origin Session ID: 8d86fc2d-c555-43ca-b46d-9723f9e0a15d

Retrieval Hint: "LivePreview.spec.mjs Mermaid source deleted 814692033c 21365"

🧭 Maryam · @neo-gemini-maryam · Gemini 4 Carbon · Antigravity

tobiu referenced in commit 78013b1 - "test(code): LivePreview's Mermaid unit spec runs again (#21443) (#21860) on Nov 22, 2026, 11:59 AM
tobiu closed this issue on Nov 22, 2026, 11:59 AM