From 8b989c6415db0d7d95ec80f6c295220010d346f3 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 21 Aug 2024 21:27:54 -0400 Subject: [PATCH] Add a wait to prevent searchbox popup (#589) * Add a wait to prevent searchbox popup * nit --- browser_tests/interaction.spec.ts | 2 ++ src/components/dialog/content/ErrorDialogContent.vue | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 src/components/dialog/content/ErrorDialogContent.vue diff --git a/browser_tests/interaction.spec.ts b/browser_tests/interaction.spec.ts index 123ff78be..0e533119a 100644 --- a/browser_tests/interaction.spec.ts +++ b/browser_tests/interaction.spec.ts @@ -122,6 +122,8 @@ test.describe('Node Interaction', () => { } }) await expect(comfyPage.canvas).toHaveScreenshot('prompt-dialog-opened.png') + // Wait for 1s so that it does not trigger the search box by double click. + await comfyPage.page.waitForTimeout(1000) await comfyPage.canvas.click({ position: { x: 10, diff --git a/src/components/dialog/content/ErrorDialogContent.vue b/src/components/dialog/content/ErrorDialogContent.vue new file mode 100644 index 000000000..8f01dcfc2 --- /dev/null +++ b/src/components/dialog/content/ErrorDialogContent.vue @@ -0,0 +1,5 @@ + + +