Add a wait to prevent searchbox popup (#589)

* Add a wait to prevent searchbox popup

* nit
This commit is contained in:
Chenlei Hu
2024-08-21 21:27:54 -04:00
committed by GitHub
parent 2e51122778
commit 8b989c6415
2 changed files with 7 additions and 0 deletions

View File

@@ -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,

View File

@@ -0,0 +1,5 @@
<template>
<div></div>
</template>
<script setup lang="ts"></script>