mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 01:50:08 +00:00
[fix] Add subgraph edge case tests (#1127)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -357,19 +357,19 @@ describe("ExecutableNodeDTO Integration", () => {
|
||||
})
|
||||
|
||||
it.skip("should handle nested subgraph flattening", () => {
|
||||
// FIXME: Test fails after rebase - nested structure setup needs review
|
||||
// FIXME: Complex nested structure requires proper parent graph setup
|
||||
// This test needs investigation of how resolveSubgraphIdPath works
|
||||
// Skip for now - will implement in edge cases test file
|
||||
const nested = createNestedSubgraphs({
|
||||
depth: 3,
|
||||
nodesPerLevel: 2,
|
||||
depth: 2,
|
||||
nodesPerLevel: 1,
|
||||
})
|
||||
|
||||
const rootSubgraphNode = nested.subgraphNodes[0]
|
||||
const flattened = rootSubgraphNode.getInnerNodes(new Map())
|
||||
const executableNodes = new Map()
|
||||
const flattened = rootSubgraphNode.getInnerNodes(executableNodes)
|
||||
|
||||
// Should have DTOs for all nested nodes
|
||||
expect(flattened.length).toBeGreaterThan(0)
|
||||
|
||||
// Should have proper hierarchical IDs
|
||||
const hierarchicalIds = flattened.filter(dto => dto.id.includes(":"))
|
||||
expect(hierarchicalIds.length).toBeGreaterThan(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user