mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-18 03:20:07 +00:00
Loading a template via loadGraphData(..., null, { openSource: 'template' })
calls afterLoadNewGraph(null, ...), which creates a new temporary workflow
tab in graph mode and switches the active workflow to it. The original test
then toggled app mode a second time, but on the new (graph-mode) workflow
that toggle ENTERED app mode again instead of exiting — leaving the canvas
hidden (0x0) and timing out toBeVisible().
The canvas re-shows automatically when the new graph-mode workflow becomes
active, so the manual second toggle is unnecessary. The bug under test is
still covered: queued canvasScheduler ops would run against a 0x0 canvas
without the fix, corrupting ds.scale/ds.offset, which the assertions catch.