Files
ComfyUI_frontend/tools/devtools
Glary-Bot e9ac55af59 test: add failing tests for DynamicCombo text preview inside subgraphs
Adds regression tests demonstrating that V3 DynamicCombo widget
serialization breaks when nodes are packed into subgraphs. The
serializeValue callback is lost during subgraph conversion, causing
sampling_mode to serialize as the raw string 'on' instead of the
expected {sampling_mode: 'on', temperature: 0.7, top_k: 64} object.

This reproduces the bug where TextGenerateLTX2Prompt -> PreviewAny
text preview fails inside subgraphs.

Tests:
- Unit: graphToPrompt DynamicCombo serialization at top level (pass)
  and inside subgraph (intentional fail)
- E2E: DynamicCombo text preview at top level and inside subgraph
- Devtools: Mock V3 DynamicCombo node for CI testing (no model needed)
2026-04-19 09:17:13 +00:00
..
2026-01-27 17:59:19 -08:00

ComfyUI DevTools

This directory contains development tools and test utilities for ComfyUI, previously maintained as a separate repository at https://github.com/Comfy-Org/ComfyUI_devtools.

Contents

  • __init__.py - Server endpoints for development tools (/api/devtools/*)
  • dev_nodes.py - Development and testing nodes for ComfyUI
  • fake_model.safetensors - Test fixture for model loading tests

Purpose

These tools provide:

  • Test endpoints for browser automation
  • Development nodes for testing various UI features
  • Mock data for consistent testing environments

Usage

During CI/CD, these files are automatically copied to the ComfyUI custom_nodes directory. For local development, copy these files to your ComfyUI installation:

cp -r tools/devtools/* /path/to/your/ComfyUI/custom_nodes/ComfyUI_devtools/

Migration

This directory was created as part of issue #4683 to merge the ComfyUI_devtools repository into the main frontend repository, eliminating the need for separate versioning and simplifying the development workflow.