fix: use existing workflow image instead of widget interaction

This commit is contained in:
bymyself
2025-12-12 21:00:59 -08:00
parent 7049946721
commit 9ffced4b30

View File

@@ -15,14 +15,6 @@ test.describe('Vue Nodes Mask Editor', () => {
await comfyPage.loadWorkflow('widgets/load_image_widget')
await comfyPage.vueNodes.waitForNodes()
const nodes = await comfyPage.getNodeRefsByType('LoadImage')
const loadImageNode = nodes[0]
const fileComboWidget = await loadImageNode.getWidget(0)
await fileComboWidget.click()
await comfyPage.page
.getByRole('menuitem', { name: 'image32x32.webp' })
.click({ noWaitAfter: true })
const imagePreview = comfyPage.page.locator('.image-preview img')
await expect(imagePreview).toBeVisible()