Fix node library bookmark preview (#626)

This commit is contained in:
Chenlei Hu
2024-08-25 10:01:42 -04:00
committed by GitHub
parent 7a7188aeb0
commit b863c11e67
3 changed files with 8 additions and 5 deletions

View File

@@ -105,6 +105,12 @@ test.describe('Menu', () => {
)
// Verify the bookmark node with the same name is added to the tree.
expect(await tab.getNode('KSampler (Advanced)').count()).toBe(2)
// Hover on the bookmark node to display the preview
await comfyPage.page.hover('.node-tree-leaf.bookmark')
expect(await comfyPage.page.isVisible('.node-lib-node-preview')).toBe(
true
)
})
test('Ignores unrecognized node', async ({ comfyPage }) => {