From b8913e9d8deb83ab08728bd8523b63fe76bec3f9 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Mon, 8 Dec 2025 20:18:24 -0800 Subject: [PATCH] Fix tests, disable INLINE_INPUTS --- src/core/graph/widgets/dynamicWidgets.ts | 2 +- tests-ui/tests/widgets/dynamicCombo.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/graph/widgets/dynamicWidgets.ts b/src/core/graph/widgets/dynamicWidgets.ts index 1a5d87b18..ac57248e8 100644 --- a/src/core/graph/widgets/dynamicWidgets.ts +++ b/src/core/graph/widgets/dynamicWidgets.ts @@ -21,7 +21,7 @@ import { useLitegraphService } from '@/services/litegraphService' import { app } from '@/scripts/app' import type { ComfyApp } from '@/scripts/app' -const INLINE_INPUTS = true +const INLINE_INPUTS = false type MatchTypeNode = LGraphNode & Pick, 'comfyMatchType' | 'onConnectionsChange'> diff --git a/tests-ui/tests/widgets/dynamicCombo.test.ts b/tests-ui/tests/widgets/dynamicCombo.test.ts index 6d159dc6f..c2c4743f7 100644 --- a/tests-ui/tests/widgets/dynamicCombo.test.ts +++ b/tests-ui/tests/widgets/dynamicCombo.test.ts @@ -118,8 +118,8 @@ describe('Autogrow', () => { connectInput(node, 1, graph) connectInput(node, 2, graph) expect(node.inputs.length).toBe(4) - expect(node.inputs[0].name).toBe('test0') - expect(node.inputs[2].name).toBe('test2') + expect(node.inputs[0].name).toBe('0.test0') + expect(node.inputs[2].name).toBe('0.test2') }) test('Can name by list of names', () => { const graph = new LGraph() @@ -130,8 +130,8 @@ describe('Autogrow', () => { connectInput(node, 1, graph) connectInput(node, 2, graph) expect(node.inputs.length).toBe(3) - expect(node.inputs[0].name).toBe('a') - expect(node.inputs[2].name).toBe('c') + expect(node.inputs[0].name).toBe('0.a') + expect(node.inputs[2].name).toBe('0.c') }) test('Can add autogrow with min input count', () => { const node = testNode()