Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions browser_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ await expect(node).toHaveClass(BYPASS_CLASS)
before `page.keyboard.press(...)`, or keys go nowhere.
- Mark the canvas dirty after programmatic state changes:
`window['app'].graph.setDirtyCanvas(true, true)`.
- `dblclick()` on canvas needs a small `{ delay: 5 }`; drags need
`{ steps: 10 }` not `{ steps: 1 }`.
- `dblclick()` on canvas needs a small `{ delay: 5 }`. Use the shared drag
helpers, which emit enough intermediate events for canvas behavior without
making coverage runs process excessive pointer events. For a local drag,
use the fewest steps the behavior needs (usually 5–20), never 100.

### Custom assertions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"nodes": [
{
"id": 3,
"type": "outer-subgraph-with-promoted-missing-model",
"type": "4e7c1a2b-3d5f-4a6b-8c9d-0e1f2a3b4c5d",
"pos": [10, 250],
"size": [400, 200],
"flags": {},
Expand All @@ -20,7 +20,7 @@
},
{
"id": 4,
"type": "outer-subgraph-with-promoted-missing-model",
"type": "4e7c1a2b-3d5f-4a6b-8c9d-0e1f2a3b4c5d",
"pos": [450, 250],
"size": [400, 200],
"flags": {},
Expand All @@ -38,7 +38,7 @@
"definitions": {
"subgraphs": [
{
"id": "outer-subgraph-with-promoted-missing-model",
"id": "4e7c1a2b-3d5f-4a6b-8c9d-0e1f2a3b4c5d",
"version": 1,
"state": {
"lastGroupId": 0,
Expand Down Expand Up @@ -71,7 +71,7 @@
"nodes": [
{
"id": 2,
"type": "inner-subgraph-with-promoted-missing-model",
"type": "5f8d2b3c-4e6a-4b7c-9d0e-1f2a3b4c5d6e",
"pos": [250, 180],
"size": [400, 200],
"flags": {},
Expand Down Expand Up @@ -105,7 +105,7 @@
]
},
{
"id": "inner-subgraph-with-promoted-missing-model",
"id": "5f8d2b3c-4e6a-4b7c-9d0e-1f2a3b4c5d6e",
"version": 1,
"state": {
"lastGroupId": 0,
Expand Down
21 changes: 20 additions & 1 deletion browser_tests/assets/missing/missing_models_in_subgraph.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"version": 1,
"state": {
"lastGroupId": 0,
"lastNodeId": 1,
"lastNodeId": 5,
"lastLinkId": 2,
"lastRerouteId": 0
},
Expand Down Expand Up @@ -100,6 +100,25 @@
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": ["fake_model.safetensors"]
},
{
"id": 5,
"type": "CheckpointLoaderSimple",
"pos": [250, 320],
"size": [315, 98],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{ "name": "MODEL", "type": "MODEL", "links": null },
{ "name": "CLIP", "type": "CLIP", "links": null },
{ "name": "VAE", "type": "VAE", "links": null }
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": ["fake_model.safetensors"]
}
],
"links": [
Expand Down
50 changes: 50 additions & 0 deletions browser_tests/assets/nodes/duplicate_node_ids.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"last_node_id": 9,
"last_link_id": 13,
"nodes": [
{
"id": 3,
"type": "KSampler",
"pos": [120, 320],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"Node name for S&R": "KSampler"
}
},
{
"id": 3,
"type": "KSampler",
"pos": [560, 320],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"Node name for S&R": "KSampler"
}
}
],
"links": [],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [0, 0]
}
},
"version": 0.4
}
156 changes: 156 additions & 0 deletions browser_tests/assets/subgraphs/subgraph-link-identity-collision.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"id": "987de650-fd73-4f2d-a7d6-ef58909d56cb",
"revision": 0,
"last_node_id": 2,
"last_link_id": 0,
"nodes": [
{
"id": 1,
"type": "11111111-1111-4111-8111-111111111111",
"pos": [300, 300],
"size": [220, 80],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [{ "name": "input", "type": "*", "link": null }],
"outputs": [{ "name": "output", "type": "*", "links": null }],
"properties": {},
"widgets_values": []
},
{
"id": 2,
"type": "22222222-2222-4222-8222-222222222222",
"pos": [650, 300],
"size": [220, 80],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [{ "name": "input", "type": "*", "link": null }],
"outputs": [{ "name": "output", "type": "*", "links": null }],
"properties": {},
"widgets_values": []
}
],
"links": [],
"groups": [],
"definitions": {
"subgraphs": [
{
"id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"state": {
"lastGroupId": 0,
"lastNodeId": 0,
"lastLinkId": 1,
"lastRerouteId": 101
},
"revision": 0,
"config": {},
"name": "Identity collision A",
"inputNode": {
"id": -10,
"bounding": [100, 200, 120, 60]
},
"outputNode": {
"id": -20,
"bounding": [500, 200, 120, 60]
},
"inputs": [
{
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"name": "input",
"type": "*",
"linkIds": [1],
"pos": { "0": 200, "1": 220 }
}
],
"outputs": [
{
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"name": "output",
"type": "*",
"linkIds": [1],
"pos": { "0": 520, "1": 220 }
}
],
"widgets": [],
"nodes": [],
"groups": [],
"links": [
{
"id": 1,
"origin_id": -10,
"origin_slot": 0,
"target_id": -20,
"target_slot": 0,
"type": "*",
"parentId": 101
}
],
"reroutes": [{ "id": 101, "pos": [300, 220], "linkIds": [1] }],
"extra": {}
},
{
"id": "22222222-2222-4222-8222-222222222222",
"version": 1,
"state": {
"lastGroupId": 0,
"lastNodeId": 0,
"lastLinkId": 1,
"lastRerouteId": 201
},
"revision": 0,
"config": {},
"name": "Identity collision B",
"inputNode": {
"id": -10,
"bounding": [100, 400, 120, 60]
},
"outputNode": {
"id": -20,
"bounding": [500, 400, 120, 60]
},
"inputs": [
{
"id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"name": "input",
"type": "*",
"linkIds": [1],
"pos": { "0": 200, "1": 420 }
}
],
"outputs": [
{
"id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
"name": "output",
"type": "*",
"linkIds": [1],
"pos": { "0": 520, "1": 420 }
}
],
"widgets": [],
"nodes": [],
"groups": [],
"links": [
{
"id": 1,
"origin_id": -10,
"origin_slot": 0,
"target_id": -20,
"target_slot": 0,
"type": "*",
"parentId": 201
}
],
"reroutes": [{ "id": 201, "pos": [400, 420], "linkIds": [1] }],
"extra": {}
}
]
},
"config": {},
"extra": {
"ds": { "scale": 1, "offset": [0, 0] },
"frontendVersion": "1.24.1"
},
"version": 0.4
}
79 changes: 79 additions & 0 deletions browser_tests/assets/vueNodes/collapsed-stacking.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"id": "407522cb-b7cb-491d-b152-3c2de19dc51d",
"revision": 0,
"last_node_id": 2,
"last_link_id": 0,
"nodes": [
{
"id": 1,
"type": "VAEDecode",
"pos": [140, 100],
"size": [193.25, 107],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": null
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": { "Node name for S&R": "VAEDecode" }
},
{
"id": 2,
"type": "CLIPTextEncode",
"pos": [100, 100],
"size": [240, 155],
"flags": { "collapsed": true },
"order": 1,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": null
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": { "name": "text" },
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": null
}
],
"properties": { "Node name for S&R": "CLIPTextEncode" },
"widgets_values": [""]
}
],
"links": [],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
Loading
Loading