diff --git a/browser_tests/assets/widgets/load_image_widget.json b/browser_tests/assets/widgets/load_image_widget.json new file mode 100644 index 0000000000..844b77d531 --- /dev/null +++ b/browser_tests/assets/widgets/load_image_widget.json @@ -0,0 +1,46 @@ +{ + "last_node_id": 10, + "last_link_id": 10, + "nodes": [ + { + "id": 10, + "type": "LoadImage", + "pos": [ + 50, + 50 + ], + "size": [ + 315, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "example.png", + "image" + ] + } + ], + "links": [], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/browser_tests/widget.spec.ts b/browser_tests/widget.spec.ts index cd87516afa..8ae545c850 100644 --- a/browser_tests/widget.spec.ts +++ b/browser_tests/widget.spec.ts @@ -127,3 +127,10 @@ test.describe('Dynamic widget manipulation', () => { await expect(comfyPage.canvas).toHaveScreenshot('ksampler_widget_added.png') }) }) + +test.describe('Load image widget', () => { + test('Can load image', async ({ comfyPage }) => { + await comfyPage.loadWorkflow('widgets/load_image_widget') + await expect(comfyPage.canvas).toHaveScreenshot('load_image_widget.png') + }) +}) diff --git a/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-2x-linux.png b/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-2x-linux.png new file mode 100644 index 0000000000..9eaca1dadf Binary files /dev/null and b/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-2x-linux.png differ diff --git a/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-linux.png b/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-linux.png new file mode 100644 index 0000000000..059972ac75 Binary files /dev/null and b/browser_tests/widget.spec.ts-snapshots/load-image-widget-chromium-linux.png differ