diff --git a/browser_tests/interaction.spec.ts-snapshots/disconnected-edge-with-menu-chromium-linux.png b/browser_tests/interaction.spec.ts-snapshots/disconnected-edge-with-menu-chromium-linux.png index c62656914..ebd206737 100644 Binary files a/browser_tests/interaction.spec.ts-snapshots/disconnected-edge-with-menu-chromium-linux.png and b/browser_tests/interaction.spec.ts-snapshots/disconnected-edge-with-menu-chromium-linux.png differ diff --git a/browser_tests/nodeSearchBox.spec.ts b/browser_tests/nodeSearchBox.spec.ts index f66d6d807..86a062527 100644 --- a/browser_tests/nodeSearchBox.spec.ts +++ b/browser_tests/nodeSearchBox.spec.ts @@ -1,17 +1,6 @@ import { expect } from "@playwright/test"; -import { ComfyPage, comfyPageFixture } from "./ComfyPage"; +import { comfyPageFixture as test} from "./ComfyPage"; -export const test = comfyPageFixture.extend<{ comfyPage: ComfyPage }>({ - comfyPage: async ({ comfyPage }, use) => { - await comfyPage.page.evaluate(async () => { - await window["app"].ui.settings.setSettingValueAsync( - "Comfy.NodeSearchBoxImpl", - "default" - ); - }); - await use(comfyPage); - }, -}); test.describe("Node search box", () => { test("Can trigger on empty canvas double click", async ({ comfyPage }) => { diff --git a/src/scripts/ui.ts b/src/scripts/ui.ts index 81c6ba20a..b45afe28f 100644 --- a/src/scripts/ui.ts +++ b/src/scripts/ui.ts @@ -429,9 +429,9 @@ export class ComfyUI { options: ["default", "litegraph (legacy)"], defaultValue: "default", onChange: (value?: string) => { - if (value === undefined) return; if (!app.canvas) return; + value = value || "default"; const useLitegraphSearch = value === "litegraph (legacy)"; app.canvas.allow_searchbox = useLitegraphSearch; document.dispatchEvent(