Skip to content

Commit f69a85d

Browse files
committed
test: wait for exact node search result
1 parent 1a9ab0f commit f69a85d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

browser_tests/tests/nodeSearchBox.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ test.describe('Node search box', { tag: '@node' }, () => {
7373
const initialNodeCount = await comfyPage.nodeOps.getGraphNodesCount()
7474
await comfyPage.canvasOps.doubleClick()
7575
await expect(comfyPage.searchBox.input).toHaveCount(1)
76-
await comfyPage.searchBox.fillAndSelectFirstNode('KSampler')
76+
await comfyPage.searchBox.fillAndSelectFirstNode('KSampler', {
77+
exact: true
78+
})
7779
await waitForSearchInsertion(comfyPage, initialNodeCount)
7880
await expect(comfyPage.canvas).toHaveScreenshot('added-node.png')
7981
})

0 commit comments

Comments
 (0)