File tree Expand file tree Collapse file tree 2 files changed +160
-0
lines changed
Expand file tree Collapse file tree 2 files changed +160
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "id" : " e0cb1d7e-5437-4911-b574-c9603dfbeaee" ,
3+ "revision" : 0 ,
4+ "last_node_id" : 2 ,
5+ "last_link_id" : 0 ,
6+ "nodes" : [
7+ {
8+ "id" : 2 ,
9+ "type" : " 8bfe4227-f272-49e1-a892-0a972a86867c" ,
10+ "pos" : [
11+ -317 ,
12+ -336
13+ ],
14+ "size" : [
15+ 210 ,
16+ 58
17+ ],
18+ "flags" : {},
19+ "order" : 0 ,
20+ "mode" : 0 ,
21+ "inputs" : [],
22+ "outputs" : [],
23+ "properties" : {
24+ "proxyWidgets" : [
25+ [
26+ " -1" ,
27+ " batch_size"
28+ ]
29+ ]
30+ },
31+ "widgets_values" : [
32+ 1
33+ ]
34+ }
35+ ],
36+ "links" : [],
37+ "groups" : [],
38+ "definitions" : {
39+ "subgraphs" : [
40+ {
41+ "id" : " 8bfe4227-f272-49e1-a892-0a972a86867c" ,
42+ "version" : 1 ,
43+ "state" : {
44+ "lastGroupId" : 0 ,
45+ "lastNodeId" : 1 ,
46+ "lastLinkId" : 1 ,
47+ "lastRerouteId" : 0
48+ },
49+ "revision" : 0 ,
50+ "config" : {},
51+ "name" : " New Subgraph" ,
52+ "inputNode" : {
53+ "id" : -10 ,
54+ "bounding" : [
55+ -562 ,
56+ -358 ,
57+ 120 ,
58+ 60
59+ ]
60+ },
61+ "outputNode" : {
62+ "id" : -20 ,
63+ "bounding" : [
64+ -52 ,
65+ -358 ,
66+ 120 ,
67+ 40
68+ ]
69+ },
70+ "inputs" : [
71+ {
72+ "id" : " b4a8bc2a-8e9f-41aa-938d-c567a11d2c00" ,
73+ "name" : " batch_size" ,
74+ "type" : " INT" ,
75+ "linkIds" : [
76+ 1
77+ ],
78+ "pos" : [
79+ -462 ,
80+ -338
81+ ]
82+ }
83+ ],
84+ "outputs" : [],
85+ "widgets" : [],
86+ "nodes" : [
87+ {
88+ "id" : 1 ,
89+ "type" : " EmptyLatentImage" ,
90+ "pos" : [
91+ -382 ,
92+ -376
93+ ],
94+ "size" : [
95+ 270 ,
96+ 106
97+ ],
98+ "flags" : {},
99+ "order" : 0 ,
100+ "mode" : 0 ,
101+ "inputs" : [
102+ {
103+ "localized_name" : " batch_size" ,
104+ "name" : " batch_size" ,
105+ "type" : " INT" ,
106+ "widget" : {
107+ "name" : " batch_size"
108+ },
109+ "link" : 1
110+ }
111+ ],
112+ "outputs" : [
113+ {
114+ "localized_name" : " LATENT" ,
115+ "name" : " LATENT" ,
116+ "type" : " LATENT" ,
117+ "links" : null
118+ }
119+ ],
120+ "properties" : {
121+ "Node name for S&R" : " EmptyLatentImage"
122+ },
123+ "widgets_values" : [
124+ 512 ,
125+ 512 ,
126+ 1
127+ ]
128+ }
129+ ],
130+ "groups" : [],
131+ "links" : [
132+ {
133+ "id" : 1 ,
134+ "origin_id" : -10 ,
135+ "origin_slot" : 0 ,
136+ "target_id" : 1 ,
137+ "target_slot" : 0 ,
138+ "type" : " INT"
139+ }
140+ ],
141+ "extra" : {}
142+ }
143+ ]
144+ },
145+ "config" : {},
146+ "extra" : {
147+ "frontendVersion" : " 1.35.1"
148+ },
149+ "version" : 0.4
150+ }
Original file line number Diff line number Diff line change @@ -329,6 +329,16 @@ test.describe('Subgraph Operations', () => {
329329 expect ( newInputName ) . toBe ( labelClickRenamedName )
330330 expect ( newInputName ) . not . toBe ( initialInputLabel )
331331 } )
332+ test ( 'Can create widget from link with compressed target_slot' , async ( {
333+ comfyPage
334+ } ) => {
335+ await comfyPage . loadWorkflow ( 'subgraphs/subgraph-compressed-target-slot' )
336+ const subgraphNode = await comfyPage . getNodeRefById ( '11' )
337+ const step = await comfyPage . page . evaluate ( ( ) => {
338+ return window [ 'app' ] . graph . nodes [ 0 ] . widgets [ 0 ] . options . step
339+ } )
340+ expect ( step ) . toBe ( 10 )
341+ } )
332342 } )
333343
334344 test . describe ( 'Subgraph Creation and Deletion' , ( ) => {
You can’t perform that action at this time.
0 commit comments