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:
Chenlei Hu
2024-07-23 14:05:02 -04:00
committed by GitHub
parent 609d3fe279
commit 69d95f6e46
9 changed files with 196 additions and 6 deletions

View File

@@ -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', () => {