Skip to content

test(graph-edit): lock EAG-28 parent viewer bundle skip#232

Open
MrCoder wants to merge 1 commit into
mainfrom
agent/cursor-dev/9bcc319b
Open

test(graph-edit): lock EAG-28 parent viewer bundle skip#232
MrCoder wants to merge 1 commit into
mainfrom
agent/cursor-dev/9bcc319b

Conversation

@MrCoder

@MrCoder MrCoder commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Core EAG-28 fix already landed in perf: lazy-load DrawIO on Graph surfaces only (EAG-27) #231 (lazy ensureDrawioViewerLoaded() — parent iframe no longer parses viewer-static.min.js on graph edit open).
  • This PR adds source-level regression tests locking the acceptance criteria:
    • index.html has no eager viewer-static / shape <script> tags
    • forge-graph-editor.ts does not call ensureDrawioViewerLoaded
    • forge-graph-viewer.ts still does (read path unchanged)

Test plan

  • pnpm exec vitest --run tests/unit/graphEditNoParentViewer.spec.ts — 3/3 pass
  • pnpm exec vitest --run tests/unit/loadDrawioViewer.spec.ts — 2/2 pass

Made with Cursor

Add source-level regression tests that index.html no longer eagerly loads
viewer-static/shape scripts and that forge-graph-editor does not call
ensureDrawioViewerLoaded while forge-graph-viewer still does.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
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