diff --git a/browser_tests/rightClickMenu.spec.ts b/browser_tests/rightClickMenu.spec.ts index f73248d07..309605bb2 100644 --- a/browser_tests/rightClickMenu.spec.ts +++ b/browser_tests/rightClickMenu.spec.ts @@ -58,9 +58,7 @@ test.describe('Node Right Click Menu', () => { await expect(comfyPage.canvas).toHaveScreenshot('right-click-node-collapsed.png'); }); - // See https://github.com/Comfy-Org/ComfyUI_frontend/pull/57 - // Bypass produces different output on Windows VS Linux. - test.skip('Can bypass', async ({ comfyPage }) => { + test('Can bypass', async ({ comfyPage }) => { await comfyPage.rightClickEmptyLatentNode(); await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png'); await comfyPage.page.getByText('Bypass').click(); diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/add-node-node-added-chromium-win32.png b/browser_tests/rightClickMenu.spec.ts-snapshots/add-node-node-added-chromium-win32.png deleted file mode 100644 index 28f34df85..000000000 Binary files a/browser_tests/rightClickMenu.spec.ts-snapshots/add-node-node-added-chromium-win32.png and /dev/null differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-linux.png b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-linux.png index ea5201653..39eb634d3 100644 Binary files a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-linux.png and b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-linux.png differ diff --git a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-win32.png b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-win32.png index a10bd59d4..8f39176b2 100644 Binary files a/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-win32.png and b/browser_tests/rightClickMenu.spec.ts-snapshots/right-click-node-bypassed-chromium-win32.png differ diff --git a/package-lock.json b/package-lock.json index 5b519b557..e287f1ed4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "comfyui-frontend", - "version": "1.0.1", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "comfyui-frontend", - "version": "1.0.1", + "version": "1.1.4", "dependencies": { "@comfyorg/litegraph": "^0.7.25", "@primevue/themes": "^4.0.0-rc.2", diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 2bee19a53..4deb7c5ea 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -1547,11 +1547,13 @@ export class ComfyApp { this.editor_alpha = 0.4; } - // Mode never equals 4 by ts check. - // if (node.mode === 4) { // never - // node.bgcolor = "#FF00FF"; - // this.editor_alpha = 0.2; - // } + // ComfyUI's custom node mode enum value 4 => bypass/never. + // @ts-ignore + if (node.mode === 4) { + // never + node.bgcolor = "#FF00FF"; + this.editor_alpha = 0.2; + } const adjustColor = (color?: string) => { return color ? lightenColor(color, 0.5) : color;