mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 06:35:10 +00:00
- Drop shoehorn in favour of new LGraphNode() + vi.spyOn(), matching the pattern already used by useComboWidget.test.ts. No more 'as unknown as'. - Extract hex literals to named constants. - Add coverage for serialization, custom input name, and the no-default case (asserts widget still produces a usable color widget rather than pinning the specific fallback colour). - Split the e2e into two scenarios per review: one adds the node via the search box (real user flow), one loads a workflow asset that persists the colour value. Both assert against the user-visible hex string on the ColorPicker trigger button instead of the internal widget value. - Note: the FE-800 ticket reference in the describe block was a holdover from the synthetic-node draft; removed. - AGENTS.md addendum documenting the devtools-node pattern for Python-side test fixtures.