mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 17:52:16 +00:00
Update litegraph (Fix auto connect slot) (#208)
* Update litegraph * Update version again * Add browser test for litegraph change * Update test expectations [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { comfyPageFixture as test } from './ComfyPage';
|
||||
import { ComfyPage, comfyPageFixture as test } from './ComfyPage';
|
||||
|
||||
test.describe('Node Interaction', () => {
|
||||
test('Can enter prompt', async ({ comfyPage }) => {
|
||||
@@ -37,6 +37,23 @@ test.describe('Node Interaction', () => {
|
||||
await comfyPage.adjustWidgetValue();
|
||||
await expect(comfyPage.canvas).toHaveScreenshot('adjusted-widget-value.png');
|
||||
});
|
||||
|
||||
test('Link snap to slot', async ({comfyPage}) => {
|
||||
await comfyPage.loadWorkflow("snap_to_slot");
|
||||
await expect(comfyPage.canvas).toHaveScreenshot('snap_to_slot.png');
|
||||
|
||||
const outputSlotPos = {
|
||||
x: 406,
|
||||
y: 333
|
||||
};
|
||||
const samplerNodeCenterPos = {
|
||||
x: 748,
|
||||
y: 77
|
||||
};
|
||||
await comfyPage.dragAndDrop(outputSlotPos, samplerNodeCenterPos);
|
||||
|
||||
await expect(comfyPage.canvas).toHaveScreenshot('snap_to_slot_linked.png');
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Canvas Interaction', () => {
|
||||
|
||||
Reference in New Issue
Block a user