Files
ComfyUI_frontend/apps
bymyself e0ba479d6d test: fix appModeTemplateViewport second toggle (no-op after new tab)
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.
2026-05-01 23:22:28 -07:00
..