diff --git a/browser_tests/interaction.spec.ts b/browser_tests/interaction.spec.ts index b126eee03..c67dcbe09 100644 --- a/browser_tests/interaction.spec.ts +++ b/browser_tests/interaction.spec.ts @@ -80,6 +80,23 @@ test.describe('Node Interaction', () => { 'batch_move_links_moved.png' ) }) + + test('Can batch disconnect links with ctrl+alt+click', async ({ + comfyPage + }) => { + const loadCheckpointClipSlotPos = { + x: 332, + y: 508 + } + await comfyPage.canvas.click({ + modifiers: ['Control', 'Alt'], + position: loadCheckpointClipSlotPos + }) + await comfyPage.nextFrame() + await expect(comfyPage.canvas).toHaveScreenshot( + 'batch-disconnect-links-disconnected.png' + ) + }) }) test.describe('Canvas Interaction', () => { diff --git a/browser_tests/interaction.spec.ts-snapshots/batch-disconnect-links-disconnected-chromium-linux.png b/browser_tests/interaction.spec.ts-snapshots/batch-disconnect-links-disconnected-chromium-linux.png new file mode 100644 index 000000000..07f85b8a9 Binary files /dev/null and b/browser_tests/interaction.spec.ts-snapshots/batch-disconnect-links-disconnected-chromium-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts b/browser_tests/rightClickMenu.spec.ts index 69f7f72e8..b52bf0679 100644 --- a/browser_tests/rightClickMenu.spec.ts +++ b/browser_tests/rightClickMenu.spec.ts @@ -85,4 +85,36 @@ test.describe('Node Right Click Menu', () => { 'right-click-node-widget-converted.png' ) }) + + test('Can pin and unpin', async ({ comfyPage }) => { + await comfyPage.rightClickEmptyLatentNode() + await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png') + await comfyPage.page.click('.litemenu-entry:has-text("Pin")') + await comfyPage.nextFrame() + await comfyPage.dragAndDrop({ x: 621, y: 617 }, { x: 16, y: 16 }) + await comfyPage.rightClickEmptyLatentNode() + await expect(comfyPage.canvas).toHaveScreenshot( + 'right-click-pinned-node.png' + ) + await comfyPage.page.click('.litemenu-entry:has-text("Unpin")') + await comfyPage.nextFrame() + await comfyPage.rightClickEmptyLatentNode() + await expect(comfyPage.canvas).toHaveScreenshot( + 'right-click-unpinned-node.png' + ) + }) + + test('Can move after unpin', async ({ comfyPage }) => { + await comfyPage.rightClickEmptyLatentNode() + await comfyPage.page.click('.litemenu-entry:has-text("Pin")') + await comfyPage.nextFrame() + await comfyPage.rightClickEmptyLatentNode() + await comfyPage.page.click('.litemenu-entry:has-text("Unpin")') + await comfyPage.nextFrame() + await comfyPage.page.waitForTimeout(256) + await comfyPage.dragAndDrop({ x: 496, y: 618 }, { x: 200, y: 590 }) + await expect(comfyPage.canvas).toHaveScreenshot( + 'right-click-unpinned-node-moved.png' + ) + }) }) diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-pinned-node-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-pinned-node-chromium-linux.png new file mode 100644 index 000000000..6ec853746 Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-pinned-node-chromium-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-chromium-linux.png new file mode 100644 index 000000000..dc8e04567 Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-chromium-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-moved-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-moved-chromium-linux.png new file mode 100644 index 000000000..dce46384e Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-unpinned-node-moved-chromium-linux.png differ