From ebdd7b8e403212995a27aa0b5e7adf5c5134eddf Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 24 Jul 2024 12:00:23 -0400 Subject: [PATCH] Use store to manage nodeSearchService (#214) --- browser_tests/ComfyPage.ts | 4 +++- src/App.vue | 15 +++++---------- src/components/NodeSearchBox.vue | 20 +++++++++----------- src/components/NodeSearchBoxPopover.vue | 17 +++++++---------- src/components/NodeSearchFilter.vue | 12 ++++-------- src/main.ts | 2 -- src/stores/nodeDefStore.ts | 6 +++++- 7 files changed, 33 insertions(+), 43 deletions(-) diff --git a/browser_tests/ComfyPage.ts b/browser_tests/ComfyPage.ts index 154165f8a..835e82914 100644 --- a/browser_tests/ComfyPage.ts +++ b/browser_tests/ComfyPage.ts @@ -110,7 +110,9 @@ export class ComfyPage { }`, }); await this.page.waitForFunction(() => document.fonts.ready); - await this.page.waitForFunction(() => window["app"] !== undefined); + await this.page.waitForFunction( + () => window["app"] !== undefined && window["app"].vueAppReady + ); await this.page.evaluate(() => { window["app"]["canvas"].show_info = false; }); diff --git a/src/App.vue b/src/App.vue index f39fb3770..55f881180 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,20 +13,16 @@