mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 00:39:49 +00:00
[Test] Validate slot links after each test (#886)
Disable `"Should move input links"` test case as it fails validation. Ref: https://github.com/Comfy-Org/litegraph.js/issues/881
This commit is contained in:
@@ -105,6 +105,20 @@ const test = baseTest.extend<TestContext>({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check that all link references are valid (Can be found in the graph)
|
||||
for (const node of graph.nodes.values()) {
|
||||
for (const input of node.inputs) {
|
||||
if (input.link) {
|
||||
expect(graph.links.keys()).toContain(input.link)
|
||||
}
|
||||
}
|
||||
for (const output of node.outputs) {
|
||||
for (const linkId of output.links ?? []) {
|
||||
expect(graph.links.keys()).toContain(linkId)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -151,7 +165,9 @@ describe("LinkConnector Integration", () => {
|
||||
})
|
||||
|
||||
describe("Moving input links", () => {
|
||||
test("Should move input links", ({ graph, connector }) => {
|
||||
// Fails link integrity check. Original link is not properly removed.
|
||||
// https://github.com/Comfy-Org/litegraph.js/issues/881
|
||||
test.skip("Should move input links", ({ graph, connector }) => {
|
||||
const nextLinkId = graph.last_link_id + 1
|
||||
|
||||
const hasInputNode = graph.getNodeById(2)!
|
||||
|
||||
Reference in New Issue
Block a user