diff --git a/.github/workflows/test-browser-exp.yaml b/.github/workflows/test-browser-exp.yaml index ce32876ec..80a7239e5 100644 --- a/.github/workflows/test-browser-exp.yaml +++ b/.github/workflows/test-browser-exp.yaml @@ -36,6 +36,8 @@ jobs: run: | git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' + git fetch origin ${{ github.head_ref }} + git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }} git add browser_tests git commit -m "Update test expectations [skip ci]" git push origin HEAD:${{ github.head_ref }} diff --git a/browser_tests/rightClickMenu.spec.ts b/browser_tests/rightClickMenu.spec.ts index 4f85ff42e..e6d154417 100644 --- a/browser_tests/rightClickMenu.spec.ts +++ b/browser_tests/rightClickMenu.spec.ts @@ -118,4 +118,20 @@ test.describe('Node Right Click Menu', () => { 'right-click-unpinned-node-moved.png' ) }) + + test('Can pin/unpin selected nodes', async ({ comfyPage }) => { + await comfyPage.select2Nodes() + await comfyPage.page.keyboard.down('Control') + await comfyPage.rightClickEmptyLatentNode() + await comfyPage.page.click('.litemenu-entry:has-text("Pin")') + await comfyPage.page.keyboard.up('Control') + await comfyPage.nextFrame() + await expect(comfyPage.canvas).toHaveScreenshot('selected-nodes-pinned.png') + await comfyPage.rightClickEmptyLatentNode() + await comfyPage.page.click('.litemenu-entry:has-text("Unpin")') + await comfyPage.nextFrame() + await expect(comfyPage.canvas).toHaveScreenshot( + 'selected-nodes-unpinned.png' + ) + }) }) diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-2x-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-2x-linux.png new file mode 100644 index 000000000..9806bc4ca Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-2x-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-linux.png new file mode 100644 index 000000000..3c1814a4f Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-pinned-chromium-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-2x-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-2x-linux.png new file mode 100644 index 000000000..75efa7405 Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-2x-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-linux.png new file mode 100644 index 000000000..0ab8e1a32 Binary files /dev/null and b/browser_tests/rightClickMenu.spec.ts-snapshots/selected-nodes-unpinned-chromium-linux.png differ diff --git a/package-lock.json b/package-lock.json index 1a0752ff8..25901bd93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.2.49", "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.2.1", - "@comfyorg/litegraph": "^0.7.68", + "@comfyorg/litegraph": "^0.7.70", "@primevue/themes": "^4.0.5", "@vitejs/plugin-vue": "^5.0.5", "@vueuse/core": "^11.0.0", @@ -1909,9 +1909,9 @@ "dev": true }, "node_modules/@comfyorg/litegraph": { - "version": "0.7.68", - "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.7.68.tgz", - "integrity": "sha512-tF7+t659oDYRmiSK12kctJOiBnUgs/wGqfbmEluerIZxEsecfDovJJ0MOfpzvOQxz7R7HoruEJY7BzvcVeilqg==", + "version": "0.7.70", + "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.7.70.tgz", + "integrity": "sha512-v+Et39tqTVCovdKTHCAvlr7pxgyJ4Wpx/vkFXxBf97HmawiHjA+Av2mbWY1ZFluKOcbIuqf9Qo0Z7w4XNjCw+g==", "license": "MIT" }, "node_modules/@cspotcode/source-map-support": { diff --git a/package.json b/package.json index 7df739791..bc66f6c59 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ }, "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.2.1", - "@comfyorg/litegraph": "^0.7.68", + "@comfyorg/litegraph": "^0.7.70", "@primevue/themes": "^4.0.5", "@vitejs/plugin-vue": "^5.0.5", "@vueuse/core": "^11.0.0",